コード例 #1
0
 public function testDeletesBySessionToken()
 {
     $userId = 123;
     $token = 'my special token';
     $expectedSession = new WebServiceUserSession($userId);
     $expectedSession->SessionToken = $token;
     $expectedSession->UserId = $userId;
     $this->repo->Delete($expectedSession);
     $command = new DeleteUserSessionCommand($token);
     $this->assertEquals($command, $this->db->_LastCommand);
 }
コード例 #2
0
 public function getUserSession($token)
 {
     return $this->userSessionRepository->getUserSession($token);
 }