Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Elgg
PersistentLoginTest
mock_get_user
Elgg\PersistentLoginTest::mock_get_user PHP Method
PersistentLoginTest Class Documentation
Show file
Open project: elgg/elgg
mock_get_user()
public
method
public
mock_get_user
(
$guid
)
function mock_get_user($guid) { if ((int) $guid === 123) { return $this->user123; } return null; }
PersistentLoginTest
getMockElggUser
getSvcWithCookie
mock_deleteAll
mock_deleteData
mock_elgg_set_cookie
mock_getDataRow
mock_get_user
mock_insertData
mock_sanitizeString
mock_sleep
setUp
testBootSessionWithInvalidLegacyTokenCausesDelayAndFailure
testChangingOwnPasswordDeletesAllHashesAndMakesPersistent
testChangingOwnPasswordWithNoCookieDoesntMakePersistent
testChangingSomeoneElsesPasswordDoesntMakePersistent
testGetPersistedUser_invalidModernToken
testGettingMissingUserFromKnownHashReturnsNull
testGettingUserFromKnownHashReturnsUser
testGettingUserFromMissingHashReturnsNull
testGettingUserFromValidClientReturnsUser
testLegacyCookiesAreReplacedInDbCookieAndSession
testLoginSavesHashAndPutsTokenInCookieAndSession
testModernTokenCookiesAreNotReplaced
testRemoveDeletesHashAndDeletesTokenFromCookieAndSession
testRemoveWithoutCookieCantDeleteHash
testReplaceLegacyTokenWithNoCookieDoesNothing