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

[9.x] Adds collect() helper on TestResponse #42384

Merged
merged 1 commit into from
May 15, 2022

Conversation

DriverCat
Copy link
Contributor

This PR adds missing collect() helper method to src/Illuminate/Testing/TestResponse.php, the same as we already use in src/Illuminate/Http/Client/Response.php.

It will help writing test responses in the same way as real ones and easily transform them into collections.

@DriverCat DriverCat changed the title Adds collect() helper on TestResponse [9.x] Adds collect() helper on TestResponse May 13, 2022
@taylorotwell taylorotwell merged commit d424ab7 into laravel:9.x May 15, 2022
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