From f64416312c9c9d6e52492d8a5b510b5615ac6c9a Mon Sep 17 00:00:00 2001 From: Milwad Date: Sat, 20 Dec 2025 09:18:43 +0330 Subject: [PATCH] add `assertFailedDependency` to http-tests --- http-tests.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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