assertJsonContains test assertion #46686
Unanswered
binaryfire
asked this question in
Ideas
Replies: 1 comment
-
Changing a key is a breaking change for apis. So I would expect it to fail. If your configuration changes behavior, you should be testing the different outcomes anyways. You might also want to look at https://laravel.com/docs/10.x/http-tests#assert-invalid |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It'd be great to have
assertJsonContains
to use in cases like this:There are a lot of situations where part of the returned JSON may change depending on the app's current configuration.
Beta Was this translation helpful? Give feedback.
All reactions