Skip to content

Commit ea7f624

Browse files
authored
Merge pull request #4870 from ahinkle/ahinkle-patch-1
[5.7] Add Undocumented assertJsonMissingValidationErrors to Available Assertions
2 parents 3a29427 + ad2c73d commit ea7f624

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

http-tests.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ Laravel provides a variety of custom assertion methods for your [PHPUnit](https:
242242
[assertJsonFragment](#assert-json-fragment)
243243
[assertJsonMissing](#assert-json-missing)
244244
[assertJsonMissingExact](#assert-json-missing-exact)
245+
[assertJsonMissingValidationErrors](#assert-json-missing-validation-errors)
245246
[assertJsonStructure](#assert-json-structure)
246247
[assertJsonValidationErrors](#assert-json-validation-errors)
247248
[assertLocation](#assert-location)
@@ -373,6 +374,13 @@ Assert that the response does not contain the exact JSON fragment:
373374

374375
$response->assertJsonMissingExact(array $data);
375376

377+
<a name="assert-json-missing-validation-errors"></a>
378+
#### assertJsonMissingValidationErrors
379+
380+
Assert that the response has no JSON validation errors for the given keys:
381+
382+
$response->assertJsonMissingValidationErrors($keys);
383+
376384
<a name="assert-json-structure"></a>
377385
#### assertJsonStructure
378386

0 commit comments

Comments
 (0)