Make the user's login persistent
public makeLoginPersistent ( ElggUser $user ) : void | ||
$user | ElggUser | The user who logged in |
return | void |
function testLoginSavesHashAndPutsTokenInCookieAndSession() { $this->dbMock->expects($this->once())->method('insertData')->will($this->returnCallback(array($this, 'mock_insertData'))); $this->svc->makeLoginPersistent($this->user123); $this->assertSame($this->mockToken, $this->lastCookieSet->value); $this->assertSame($this->mockToken, $this->session->get('code')); }