Skip to content
Merged
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 @@ -961,6 +961,7 @@ Laravel's `Illuminate\Testing\TestResponse` class provides a variety of custom a

[assertAccepted](#assert-accepted)
[assertBadRequest](#assert-bad-request)
[assertClientError](#assert-client-error)
[assertConflict](#assert-conflict)
[assertCookie](#assert-cookie)
[assertCookieExpired](#assert-cookie-expired)
Expand Down Expand Up @@ -1055,6 +1056,15 @@ Assert that the response has an accepted (202) HTTP status code:
$response->assertAccepted();
```

<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-conflict"></a>
#### assertConflict

Expand Down