Methods

setUp()

setUp() 

Setup teh test environment.

Tags

None found

tearDown()

tearDown() 

Tear down the test environment.

Tags

None found

testUserMethodReturnsCurrentUser()

testUserMethodReturnsCurrentUser() 

Test the Auth::user method.

Tags

group

laravel

testCheckMethodReturnsTrueWhenUserIsSet()

testCheckMethodReturnsTrueWhenUserIsSet() 

Test the Auth::check method.

Tags

group

laravel

testCheckMethodReturnsFalseWhenNoUserIsSet()

testCheckMethodReturnsFalseWhenNoUserIsSet() 

Test the Auth::check method.

Tags

group

laravel

testGuestReturnsTrueWhenNoUserIsSet()

testGuestReturnsTrueWhenNoUserIsSet() 

Test the Auth::guest method.

Tags

group

laravel

testGuestReturnsFalseWhenUserIsSet()

testGuestReturnsFalseWhenUserIsSet() 

Test the Auth::guest method.

Tags

group

laravel

testUserMethodReturnsNullWhenNoUserExistsAndNoRecallerExists()

testUserMethodReturnsNullWhenNoUserExistsAndNoRecallerExists() 

Test the Auth::user method.

Tags

group

laravel

testUserReturnsUserByID()

testUserReturnsUserByID() 

Test the Auth::user method.

Tags

group

laravel

testNullReturnedWhenUserIDNotValidInteger()

testNullReturnedWhenUserIDNotValidInteger() 

Test the Auth::user method.

Tags

group

laravel

testUserCanBeRecalledViaCookie()

testUserCanBeRecalledViaCookie() 

Test the Auth::recall method.

Tags

group

laravel

testAttemptMethodReturnsFalseWhenCredentialsAreInvalid()

testAttemptMethodReturnsFalseWhenCredentialsAreInvalid() 

Test the Auth::attempt method.

Tags

group

laravel

testAttemptReturnsTrueWhenCredentialsAreCorrect()

testAttemptReturnsTrueWhenCredentialsAreCorrect() 

Test the Auth::attempt method.

Tags

group

laravel

testLoginMethodStoresUserKeyInSession()

testLoginMethodStoresUserKeyInSession() 

Test Auth::login method.

Tags

group

laravel

testLoginStoresRememberCookieWhenNeeded()

testLoginStoresRememberCookieWhenNeeded() 

Test the Auth::login method.

Tags

group

laravel

testLogoutMethodLogsOutUser()

testLogoutMethodLogsOutUser() 

Test the Auth::logout method.

Tags

group

laravel

testAuthEventIsCalledProperly()

testAuthEventIsCalledProperly() 

Test `laravel.auth: login` and `laravel.auth: logout` is called properly

Tags

group

laravel

setServerVar()

setServerVar(string  $key, string  $value) 

Set one of the $_SERVER variables.

Parameters

string $key
string $value

Tags

None found

restartRequest()

restartRequest() : void

Reinitialize the global request.

Tags

None found