/**
  * @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();
 }
 /**
  * @test
  */
 public function persistSessionTokenWritesTokenToSession()
 {
     $sessionToken = '881ffea2159ac72182557b79dc0c723f5a8d20136f9fab56cdd4f8b3a1dbcfcd';
     $this->fixture->setSessionToken($sessionToken);
     $GLOBALS['BE_USER']->expects($this->once())->method('setAndSaveSessionData')->with('formSessionToken', $sessionToken);
     $this->fixture->persistSessionToken();
 }
 /**
  * @test
  */
 public function persistSessionTokenWritesTokenToSession()
 {
     $this->backendUserMock->expects($this->once())->method('setAndSaveSessionData');
     $this->subject->persistSessionToken();
 }