Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions http-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.

<a name="assert-failed-dependency">
#### assertFailedDependency

Assert that the response has a failed dependency (424) HTTP status code:

```php
$response->assertFailedDependency();
```

<a name="assert-forbidden"></a>
#### assertForbidden

Expand Down