Skip to content

[9.x] Dump specific key of the response in tests #38468

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

Merged
merged 1 commit into from
Aug 20, 2021
Merged

[9.x] Dump specific key of the response in tests #38468

merged 1 commit into from
Aug 20, 2021

Conversation

chrysanthos
Copy link
Contributor

There are cases while debugging where you'd want to only dump specific key from the response you just made. This is a simple addition to be able to selectively dump parts of the response.

An example would be getting the data key from an api-resource response. That's a very simplistic example (since you basically only save the pagination stuff) but when dumping a huge response, the dumped data are hard to read and with this change we can select the part we need.

@chrysanthos chrysanthos changed the title [9.x] Dump specific key of the response [9.x] Dump specific key of the response in tests Aug 19, 2021
@driesvints
Copy link
Member

Hi, please rebase with master to make the tests pass again. Then mark this PR as ready for review.

@driesvints driesvints marked this pull request as draft August 20, 2021 09:28
@chrysanthos chrysanthos marked this pull request as ready for review August 20, 2021 13:32
@taylorotwell taylorotwell merged commit 081f467 into laravel:master Aug 20, 2021
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.

4 participants