Skip to content

Commit 118eb19

Browse files
committed
wip
1 parent 3432dc8 commit 118eb19

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

http-tests.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,8 @@ Laravel's `Illuminate\Testing\TestResponse` class provides a variety of custom a
10051005
[assertPlainCookie](#assert-plain-cookie)
10061006
[assertRedirect](#assert-redirect)
10071007
[assertRedirectBack](#assert-redirect-back)
1008+
[assertRedirectBackWithErrors](#assert-redirect-back-with-errors)
1009+
[assertRedirectBackWithoutErrors](#assert-redirect-back-without-errors)
10081010
[assertRedirectContains](#assert-redirect-contains)
10091011
[assertRedirectToRoute](#assert-redirect-to-route)
10101012
[assertRedirectToSignedRoute](#assert-redirect-to-signed-route)
@@ -1561,6 +1563,26 @@ Assert whether the response is redirecting back to the previous page:
15611563
$response->assertRedirectBack();
15621564
```
15631565

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+
15641586
<a name="assert-redirect-contains"></a>
15651587
#### assertRedirectContains
15661588

0 commit comments

Comments
 (0)