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 value.
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
at line line 28
void
assertResponseStatus(
int $code)
Assert that the client response has a given code.
at line line 42
void
assertViewHas(
string|array $key,
mixed $value = null)
Assert that the response view has a given piece of bound data.
at line line 65
void
assertViewHasAll(
array $bindings)
Assert that the view has a given list of bound data.
at line line 82
void
assertViewMissing(
string $key)
Assert that the response view is missing a piece of bound data.
at line line 98
void
assertRedirectedTo(
string $uri,
array $with = array())
Assert whether the client was redirected to a given URI.
at line line 115
void
assertRedirectedToRoute(
string $name,
array $parameters = array(),
array $with = array())
Assert whether the client was redirected to a given route.
at line line 128
void
assertRedirectedToAction(
string $name,
array $parameters = array(),
array $with = array())
Assert whether the client was redirected to a given action.
at line line 140
void
assertSessionHas(
string|array $key,
mixed $value = null)
Assert that the session has a given value.
at line line 159
void
assertSessionHasAll(
array $bindings)
Assert that the session has a given list of values.
at line line 177
void
assertSessionHasErrors(
string|array $bindings = array(),
mixed $format = null)
Assert that the session has errors bound.