Skip to content

Add a better dump() helper for responses#616

Merged
srtfisher merged 4 commits into1.xfrom
feature/dump-request
Jan 15, 2025
Merged

Add a better dump() helper for responses#616
srtfisher merged 4 commits into1.xfrom
feature/dump-request

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
Contributor

@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 👍🏼

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
Contributor

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