diff --git a/http-tests.md b/http-tests.md index bc000562d12..88f88cc9cbf 100644 --- a/http-tests.md +++ b/http-tests.md @@ -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) @@ -999,6 +1000,13 @@ Assert that the response has an unauthorized (401) HTTP status code: $response->assertUnauthorized(); + +#### assertUnprocessable + +Assert that the response has an unprocessable entity (422) HTTP status code: + + $response->assertUnprocessable(); + #### assertValid