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] Fix assertJsonValidationErrors when there are no errors #27190

Merged
merged 1 commit into from
Jan 17, 2019
Merged

[5.7] Fix assertJsonValidationErrors when there are no errors #27190

merged 1 commit into from
Jan 17, 2019

Conversation

SjorsO
Copy link
Contributor

@SjorsO SjorsO commented Jan 17, 2019

When an api response has no errors, assertJsonValidationErrors will throw an ErrorException because it is trying to access the undefined index errors. This PR fixes that. It also changes the isTrue assertion to a more descriptive assertArrayHasKey assertion.

@taylorotwell taylorotwell merged commit 8ccb11d into laravel:5.7 Jan 17, 2019
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