Methods

setUp()

setUp() 

Setup the testing environment.

Tags

None found

tearDown()

tearDown() 

Tear down the testing environment.

Tags

None found

testPayloadCanBeCalledStaticly()

testPayloadCanBeCalledStaticly() 

Test the __callStatic method.

Tags

group

laravel

testStartedMethodIndicatesIfSessionIsStarted()

testStartedMethodIndicatesIfSessionIsStarted() 

Test the Session::started method.

Tags

group

laravel

testLoadMethodCreatesNewSessionWithNullIDGiven()

testLoadMethodCreatesNewSessionWithNullIDGiven() 

Test the Payload::load method.

Tags

group

laravel

testLoadMethodCreatesNewSessionWhenSessionIsExpired()

testLoadMethodCreatesNewSessionWhenSessionIsExpired() 

Test the Payload::load method.

Tags

group

laravel

testLoadMethodSetsValidSession()

testLoadMethodSetsValidSession() 

Test the Payload::load method.

Tags

group

laravel

testLoadMethodSetsCSRFTokenIfDoesntExist()

testLoadMethodSetsCSRFTokenIfDoesntExist() 

Test the Payload::load method.

Tags

group

laravel

testSessionDataCanBeRetrievedProperly()

testSessionDataCanBeRetrievedProperly() 

Test the various data retrieval methods.

Tags

group

laravel

testDataCanBeSetProperly()

testDataCanBeSetProperly() 

Test the various data manipulation methods.

Tags

group

laravel

testSessionDataCanBeForgotten()

testSessionDataCanBeForgotten() 

Test the Payload::forget method.

Tags

group

laravel

testFlushMaintainsTokenButDeletesEverythingElse()

testFlushMaintainsTokenButDeletesEverythingElse() 

Test the Payload::flush method.

Tags

group

laravel

testRegenerateMethodSetsNewIDAndTurnsOffExistenceIndicator()

testRegenerateMethodSetsNewIDAndTurnsOffExistenceIndicator() 

Test the Payload::regenerate method.

Tags

group

laravel

testTokenMethodReturnsCSRFToken()

testTokenMethodReturnsCSRFToken() 

Test the Payload::token method.

Tags

group

laravel

testSaveMethodCorrectlyCallsDriver()

testSaveMethodCorrectlyCallsDriver() 

Test the Payload::save method.

Tags

group

laravel

testSaveMethodSweepsIfSweeperAndOddsHitWithTimeGreaterThanThreshold()

testSaveMethodSweepsIfSweeperAndOddsHitWithTimeGreaterThanThreshold() 

Test the Payload::save method.

Tags

group

laravel

testSaveMethodSweepsIfSweeperAndOddsHitWithTimeLessThanThreshold()

testSaveMethodSweepsIfSweeperAndOddsHitWithTimeLessThanThreshold() 

Test the Payload::save method.

Tags

group

laravel

testSweeperShouldntBeCalledIfDriverIsntSweeper()

testSweeperShouldntBeCalledIfDriverIsntSweeper() 

Test that the session sweeper is never called if not a sweeper.

Tags

group

laravel

testSaveMethodSetsCookieWithCorrectValues()

testSaveMethodSetsCookieWithCorrectValues() 

Test the Payload::save method.

Tags

group

laravel

testActivityMethodReturnsLastActivity()

testActivityMethodReturnsLastActivity() 

Test the Session::activity method.

Tags

group

laravel

verifyNewSession()

verifyNewSession(\Laravel\Session\Payload  $payload) : void

Assert that a session is new.

Parameters

LaravelSessionPayload $payload

Tags

None found

getPayload()

getPayload() : \Laravel\Session\Payload

Get a session payload instance.

Returns

LaravelSessionPayload

Tags

None found

getMockDriver()

getMockDriver() : \Driver

Get a mock driver instance.

Returns

Driver

Tags

None found

getSession()

getSession() : array

Get a dummy session.

Returns

array

Tags

None found