Skip to content
New issue

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

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

Already on GitHub? # to your account

[11.x] assertStreamed and assertNotStreamed #54566

Merged
merged 3 commits into from
Feb 12, 2025

Conversation

gdebrauwer
Copy link
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
24 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants