Skip to content

[11.x] assertStreamed and assertNotStreamed#54566

Merged
taylorotwell merged 3 commits into
laravel:11.xfrom
gdebrauwer:assert-streamed
Feb 12, 2025
Merged

[11.x] assertStreamed and assertNotStreamed#54566
taylorotwell merged 3 commits into
laravel:11.xfrom
gdebrauwer:assert-streamed

Conversation

@gdebrauwer

Copy link
Copy Markdown
Contributor

Currently, there is no easy way to check if a response was streamed without asserting the complete response content (using assertStreamedContent() or assertStreamedJsonContent()). This PR fixes that.

$this->getJson('/users')->assertStreamed();

$this->getJson('/users')->assertNotStreamed();

@gdebrauwer gdebrauwer changed the title [11.x] assertStreamed and assertNotStreamed [11.x] assertStreamed and assertNotStreamed Feb 11, 2025
@taylorotwell taylorotwell merged commit 102d770 into laravel:11.x Feb 12, 2025
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