Elgg\PersistentLoginTest::testBootSessionWithInvalidLegacyTokenCausesDelayAndFailure PHP Method

testBootSessionWithInvalidLegacyTokenCausesDelayAndFailure() public method

    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);
    }