AssertionsTrait
trait AssertionsTrait (View source)
Methods
Assert that the client response has an OK status code.
Assert that the client response has a given code.
Assert that the response view has a given piece of bound data.
Assert that the view has a given list of bound data.
Assert that the response view is missing a piece of bound data.
Assert whether the client was redirected to a given URI.
Assert whether the client was redirected to a given route.
Assert whether the client was redirected to a given action.
Assert that the session has a given list of values.
Assert that the session has a given list of values.
Assert that the session has errors bound.
Assert that the session has old input.
Details
void
assertResponseOk()
Assert that the client response has an OK status code.
void
assertResponseStatus(int $code)
Assert that the client response has a given code.
void
assertViewHas(string|array $key, mixed $value = null)
Assert that the response view has a given piece of bound data.
void
assertViewHasAll(array $bindings)
Assert that the view has a given list of bound data.
void
assertViewMissing(string $key)
Assert that the response view is missing a piece of bound data.
void
assertRedirectedTo(string $uri, array $with = array())
Assert whether the client was redirected to a given URI.
void
assertRedirectedToRoute(string $name, array $parameters = array(), array $with = array())
Assert whether the client was redirected to a given route.
void
assertRedirectedToAction(string $name, array $parameters = array(), array $with = array())
Assert whether the client was redirected to a given action.
void
assertSessionHas(string|array $key, mixed $value = null)
Assert that the session has a given list of values.
void
assertSessionHasAll(array $bindings)
Assert that the session has a given list of values.
void
assertSessionHasErrors(string|array $bindings = array(), mixed $format = null)
Assert that the session has errors bound.
void
assertHasOldInput()
Assert that the session has old input.