InteractsWithSession (Foundation\Testing)
InteractsWithSession
trait InteractsWithSession (View source)
Methods
$this | withSession( array $data) Set the session to the given array. | |
void | session( array $data) Set the session to the given array. | |
void | flushSession() Flush all of the current session data. | |
void | seeInSession( string|array $key, mixed $value = null) Assert that the session has a given value. | |
void | assertSessionHas( string|array $key, mixed $value = null) Assert that the session has a given value. | |
void | assertSessionHasAll( array $bindings) Assert that the session has a given list of values. | |
void | assertSessionMissing( string|array $key) Assert that the session does not have a given key. | |
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. |
Details
$this withSession( array $data)
Set the session to the given array.
void session( array $data)
Set the session to the given array.
void flushSession()
Flush all of the current session data.
void seeInSession( string|array $key, mixed $value = null)
Assert that the session has a given value.
void assertSessionHas( string|array $key, mixed $value = null)
Assert that the session has a given value.
void assertSessionHasAll( array $bindings)
Assert that the session has a given list of values.
void assertSessionMissing( string|array $key)
Assert that the session does not have a given key.
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Foundation/Testing/Concerns/InteractsWithSession.html