Skip to content

Commit

Permalink
add method for easier error bag checking
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 12, 2017
1 parent 7ff18e5 commit 4287ebc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Illuminate/Foundation/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,19 @@ public function assertSessionHasErrors($keys = [], $format = null, $errorBag = '
return $this;
}

/**
* Assert that the session has the given errors.
*
* @param string $errorBag
* @param string|array $keys
* @param mixed $format
* @return $this
*/
public function assertSessionHasErrorsIn($errorBag, $keys = [], $format = null)
{
return $this->assertSessionHasErrors($keys, $format, $errorBag);
}

/**
* Assert that the session does not have a given key.
*
Expand Down

0 comments on commit 4287ebc

Please sign in to comment.