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] Revert breaking change to assert JSON functions #26713

Merged
merged 1 commit into from
Dec 2, 2018
Merged

[5.7] Revert breaking change to assert JSON functions #26713

merged 1 commit into from
Dec 2, 2018

Conversation

nathanheffley
Copy link
Contributor

This PR reverts a breaking change that was introduced in cfab97f (released as part of 5.7.14) where assertJsonStructure would throw an exception if the response had numerical string keys (fixes #26677) and where assertJson would throw an exception if the response had an empty object response (instead of throwing a more helpful test failure, fixes #26684).

@TBlindaruk TBlindaruk changed the title Revert breaking change to assert JSON functions [5.7] Revert breaking change to assert JSON functions Dec 2, 2018
@JeroenVanOort
Copy link
Contributor

Wouldn't it be wise to add a test for the behaviour that was broken by the changes this attempts to revert? That way, we don't only prevent this mistake now, but we'd also prevent it for the future.

@taylorotwell taylorotwell merged commit cc1b312 into laravel:5.7 Dec 2, 2018
@driesvints
Copy link
Member

@JeroenVanOort good call. I've sent in a PR which does so: #26741

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.

None yet

4 participants