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

[5.7] Add tests for decodeResponseJson #26741

Merged
merged 2 commits into from
Dec 4, 2018
Merged

[5.7] Add tests for decodeResponseJson #26741

merged 2 commits into from
Dec 4, 2018

Conversation

driesvints
Copy link
Member

This PR adds some extra tests to make sure that the current testing behavior for most JSON assertions keeps on working like it does now. It makes sure that:

The two issues I linked to above were posted after some breaking changes were introduced because of cfab97f which essential broke the functionality which is now covered with these tests.

This test will prevent assertJsonStructure from breaking when an array with numeric keys which don't start from 0 is encoded to json and passed through it.

See #26677 for more info.
This test will ensure that the exception message is thrown when invalid JSON is being returned from the route.

See #26684
@taylorotwell taylorotwell merged commit 609c768 into laravel:5.7 Dec 4, 2018
@driesvints driesvints deleted the add-test-for-decode-response-json branch December 6, 2018 12:06
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.

3 participants