@@ -1005,6 +1005,8 @@ Laravel's `Illuminate\Testing\TestResponse` class provides a variety of custom a
1005
1005
[ assertPlainCookie] ( #assert-plain-cookie )
1006
1006
[ assertRedirect] ( #assert-redirect )
1007
1007
[ assertRedirectBack] ( #assert-redirect-back )
1008
+ [ assertRedirectBackWithErrors] ( #assert-redirect-back-with-errors )
1009
+ [ assertRedirectBackWithoutErrors] ( #assert-redirect-back-without-errors )
1008
1010
[ assertRedirectContains] ( #assert-redirect-contains )
1009
1011
[ assertRedirectToRoute] ( #assert-redirect-to-route )
1010
1012
[ assertRedirectToSignedRoute] ( #assert-redirect-to-signed-route )
@@ -1561,6 +1563,26 @@ Assert whether the response is redirecting back to the previous page:
1561
1563
$response->assertRedirectBack();
1562
1564
```
1563
1565
1566
+ <a name =" assert-redirect-back-with-errors " ></a >
1567
+ #### assertRedirectBackWithErrors
1568
+
1569
+ Assert whether the response is redirecting back to the previous page and the [ session has the given errors] ( #assert-session-has-errors ) :
1570
+
1571
+ ``` php
1572
+ $response->assertRedirectBackWithErrors(
1573
+ array $keys = [], $format = null, $errorBag = 'default'
1574
+ );
1575
+ ```
1576
+
1577
+ <a name =" assert-redirect-back-without-errors " ></a >
1578
+ #### assertRedirectBackWithoutErrors
1579
+
1580
+ Assert whether the response is redirecting back to the previous page and the session does not contain any error messages:
1581
+
1582
+ ``` php
1583
+ $response->assertRedirectBackWithoutErrors();
1584
+ ```
1585
+
1564
1586
<a name =" assert-redirect-contains " ></a >
1565
1587
#### assertRedirectContains
1566
1588
0 commit comments