本文整理匯總了PHP中TYPO3\CMS\Core\Tests\AccessibleObjectInterface::persistSessionToken方法的典型用法代碼示例。如果您正苦於以下問題:PHP AccessibleObjectInterface::persistSessionToken方法的具體用法?PHP AccessibleObjectInterface::persistSessionToken怎麽用?PHP AccessibleObjectInterface::persistSessionToken使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TYPO3\CMS\Core\Tests\AccessibleObjectInterface
的用法示例。
在下文中一共展示了AccessibleObjectInterface::persistSessionToken方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: persistSessionTokenWritesTokensToSession
/**
* @test
*/
public function persistSessionTokenWritesTokensToSession()
{
$_SESSION['installToolFormToken'] = 'foo';
$this->fixture->_set('sessionToken', '881ffea2159ac72182557b79dc0c723f5a8d20136f9fab56cdd4f8b3a1dbcfcd');
$this->fixture->persistSessionToken();
$this->assertEquals('881ffea2159ac72182557b79dc0c723f5a8d20136f9fab56cdd4f8b3a1dbcfcd', $_SESSION['installToolFormToken']);
}
示例2: persistSessionTokenWritesTokenToSession
/**
* @test
*/
public function persistSessionTokenWritesTokenToSession()
{
$sessionToken = $this->getUniqueId('test_');
$this->subject->_set('sessionToken', $sessionToken);
$this->getBackendUser()->expects($this->once())->method('setAndSaveSessionData')->with('formSessionToken', $sessionToken);
$this->subject->persistSessionToken();
}
示例3: persistSessionTokenWritesTokenToSession
/**
* @test
*/
public function persistSessionTokenWritesTokenToSession()
{
$this->backendUserMock->expects($this->once())->method('setAndSaveSessionData');
$this->subject->persistSessionToken();
}