PHP 트레잇 Illuminate\Foundation\Testing\Concerns\InteractsWithSession

파일 보기 프로젝트 열기: laravel/framework

공개 메소드들

메소드 설명
assertHasOldInput ( ) Assert that the session has old input.
assertSessionHas ( string | array $key, mixed $value = null ) Assert that the session has a given value.
assertSessionHasAll ( array $bindings ) Assert that the session has a given list of values.
assertSessionHasErrors ( string | array $bindings = [], mixed $format = null ) Assert that the session has errors bound.
assertSessionMissing ( string | array $key ) Assert that the session does not have a given key.
flushSession ( ) Flush all of the current session data.
seeInSession ( string | array $key, mixed $value = null ) Assert that the session has a given value.
session ( array $data ) Set the session to the given array.
withSession ( array $data ) Set the session to the given array.

보호된 메소드들

메소드 설명
startSession ( ) Start the session for the application.

메소드 상세

assertHasOldInput() 공개 메소드

Assert that the session has old input.
public assertHasOldInput ( )

assertSessionHas() 공개 메소드

Assert that the session has a given value.
public assertSessionHas ( string | array $key, mixed $value = null )
$key string | array
$value mixed

assertSessionHasAll() 공개 메소드

Assert that the session has a given list of values.
public assertSessionHasAll ( array $bindings )
$bindings array

assertSessionHasErrors() 공개 메소드

Assert that the session has errors bound.
public assertSessionHasErrors ( string | array $bindings = [], mixed $format = null )
$bindings string | array
$format mixed

assertSessionMissing() 공개 메소드

Assert that the session does not have a given key.
public assertSessionMissing ( string | array $key )
$key string | array

flushSession() 공개 메소드

Flush all of the current session data.
public flushSession ( )

seeInSession() 공개 메소드

Assert that the session has a given value.
public seeInSession ( string | array $key, mixed $value = null )
$key string | array
$value mixed

session() 공개 메소드

Set the session to the given array.
public session ( array $data )
$data array

startSession() 보호된 메소드

Start the session for the application.
protected startSession ( )

withSession() 공개 메소드

Set the session to the given array.
public withSession ( array $data )
$data array