bootSession() публичный Метод

Boot the persistent login session, possibly returning the user who should be silently logged in.
public bootSession ( ) : ElggUser | null
Результат ElggUser | null
Пример #1
0
 function testBootSessionWithInvalidLegacyTokenCausesDelayAndFailure()
 {
     $this->dbMock->expects($this->once())->method('getDataRow')->will($this->returnValue(array()));
     $this->svc = $this->getSvcWithCookie(str_repeat('b', 32));
     $user = $this->svc->bootSession();
     $this->assertSame(1, $this->timeSlept);
     $this->assertSame('', $this->lastCookieSet->value);
     $this->assertSame($this->thirtyDaysAgo, $this->lastCookieSet->expire);
     $this->assertNull($user);
 }