diff --git a/http-tests.md b/http-tests.md index 1a23c3191a..85a5b1ad87 100644 --- a/http-tests.md +++ b/http-tests.md @@ -1021,6 +1021,7 @@ Laravel's `Illuminate\Testing\TestResponse` class provides a variety of custom a [assertDownload](#assert-download) [assertExactJson](#assert-exact-json) [assertExactJsonStructure](#assert-exact-json-structure) +[assertFailedDependency](#assert-failed-dependency) [assertForbidden](#assert-forbidden) [assertFound](#assert-found) [assertGone](#assert-gone) @@ -1222,6 +1223,15 @@ $response->assertExactJsonStructure(array $data); This method is a more strict variant of [assertJsonStructure](#assert-json-structure). In contrast with `assertJsonStructure`, this method will fail if the response contains any keys that aren't explicitly included in the expected JSON structure. + +#### assertFailedDependency + +Assert that the response has a failed dependency (424) HTTP status code: + +```php +$response->assertFailedDependency(); +``` + #### assertForbidden