Skip to content
Closed
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 @@ -967,6 +967,7 @@ Laravel's `Illuminate\Testing\TestResponse` class provides a variety of custom a
[assertCookieNotExpired](#assert-cookie-not-expired)
[assertCookieMissing](#assert-cookie-missing)
[assertCreated](#assert-created)
[assertClientError](#assert-client-error)
[assertDontSee](#assert-dont-see)
[assertDontSeeText](#assert-dont-see-text)
[assertDownload](#assert-download)
Expand Down Expand Up @@ -1109,6 +1110,15 @@ Assert that the response has a 201 HTTP status code:
$response->assertCreated();
```

<a name="assert-client-error"></a>
#### assertClientError

Assert that the response has a client error (>= 400 , < 500) HTTP status code:

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

<a name="assert-dont-see"></a>
#### assertDontSee

Expand Down