Skip to content

Commit

Permalink
Add assertUnprocessable to http tests (#7358)
Browse files Browse the repository at this point in the history
* Add assertUnprocessable to http tests

* Update http-tests.md

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
lakuapik and taylorotwell authored Oct 14, 2021
1 parent 44b4297 commit e0d247d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions http-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ Laravel's `Illuminate\Testing\TestResponse` class provides a variety of custom a
[assertStatus](#assert-status)
[assertSuccessful](#assert-successful)
[assertUnauthorized](#assert-unauthorized)
[assertUnprocessable](#assert-unprocessable)
[assertValid](#assert-valid)
[assertInvalid](#assert-invalid)
[assertViewHas](#assert-view-has)
Expand Down Expand Up @@ -999,6 +1000,13 @@ Assert that the response has an unauthorized (401) HTTP status code:

$response->assertUnauthorized();

<a name="assert-unprocessable"></a>
#### assertUnprocessable

Assert that the response has an unprocessable entity (422) HTTP status code:

$response->assertUnprocessable();

<a name="assert-valid"></a>
#### assertValid

Expand Down

0 comments on commit e0d247d

Please sign in to comment.