File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -967,6 +967,7 @@ Laravel's `Illuminate\Testing\TestResponse` class provides a variety of custom a
967
967
[ assertCookieNotExpired] ( #assert-cookie-not-expired )
968
968
[ assertCookieMissing] ( #assert-cookie-missing )
969
969
[ assertCreated] ( #assert-created )
970
+ [ assertClientError] ( #assert-client-error )
970
971
[ assertDontSee] ( #assert-dont-see )
971
972
[ assertDontSeeText] ( #assert-dont-see-text )
972
973
[ assertDownload] ( #assert-download )
@@ -1109,6 +1110,15 @@ Assert that the response has a 201 HTTP status code:
1109
1110
$response->assertCreated();
1110
1111
```
1111
1112
1113
+ <a name =" assert-client-error " ></a >
1114
+ #### assertClientError
1115
+
1116
+ Assert that the response has a client error (>= 400 , < 500) HTTP status code:
1117
+
1118
+ ``` php
1119
+ $response->assertClientError();
1120
+ ```
1121
+
1112
1122
<a name =" assert-dont-see " ></a >
1113
1123
#### assertDontSee
1114
1124
You can’t perform that action at this time.
0 commit comments