Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a better dump() helper for responses #616

Merged
merged 4 commits into from
Jan 15, 2025
Merged

Conversation

srtfisher
Copy link
Member

@srtfisher srtfisher commented Jan 14, 2025

// When testing...
$this->post_json( '/test-post-json', [ 'foo' => 'bar' ] )->dump();

CleanShot 2025-01-14 at 11 02 31@2x

Copy link
Member

@attackant attackant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if there is possibly an artifact from your development here in one file. Otherwise, looks good 👍🏼

@@ -38,7 +38,7 @@ public function test_get_home() {

public function test_get_singular() {
$post_id = static::factory()->post->create();
$this->get( get_permalink( $post_id ) )
$this->get( get_permalink( $post_id ) . '?test=asda' )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like maybe something left from development here?

@srtfisher srtfisher enabled auto-merge (squash) January 15, 2025 18:11
@srtfisher srtfisher merged commit 3db21c5 into 1.x Jan 15, 2025
14 checks passed
@srtfisher srtfisher deleted the feature/dump-request branch January 15, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants