Skip to content

Commit 2afa88f

Browse files
authored
Merge pull request #4914 from shadoWalker89/patch-5
[5.7] Add assertSessionDoesntHaveErrors()
2 parents 9678846 + e10e236 commit 2afa88f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

http-tests.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ Laravel provides a variety of custom assertion methods for your [PHPUnit](https:
259259
[assertSessionHasErrors](#assert-session-has-errors)
260260
[assertSessionHasErrorsIn](#assert-session-has-errors-in)
261261
[assertSessionHasNoErrors](#assert-session-has-no-errors)
262+
[assertSessionDoesntHaveErrors](#assert-session-doesnt-have-errors)
262263
[assertSessionMissing](#assert-session-missing)
263264
[assertStatus](#assert-status)
264265
[assertSuccessful](#assert-successful)
@@ -492,6 +493,13 @@ Assert that the session has the given errors:
492493
Assert that the session has no errors:
493494

494495
$response->assertSessionHasNoErrors();
496+
497+
<a name="assert-session-doesnt-have-errors"></a>
498+
#### assertSessionDoesntHaveErrors
499+
500+
Assert that the session has no errors for the given keys:
501+
502+
$response->assertSessionDoesntHaveErrors($keys = [], $format = null, $errorBag = 'default');
495503

496504
<a name="assert-session-missing"></a>
497505
#### assertSessionMissing

0 commit comments

Comments
 (0)