Skip to content

Commit

Permalink
Add assertion to verify there are no errors (#24308)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnabialek authored and taylorotwell committed May 25, 2018
1 parent c4ccd93 commit a3d99ca
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Illuminate/Foundation/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,18 @@ public function assertSessionHasErrors($keys = [], $format = null, $errorBag = '
return $this;
}

/**
* Assert that the session has no errors.
*
* @return $this
*/
public function assertSessionHasNoErrors()
{
$this->assertSessionMissing('errors');

return $this;
}

/**
* Assert that the session has the given errors.
*
Expand Down

0 comments on commit a3d99ca

Please sign in to comment.