/**
  * @param AuthResponse $authResponse
  */
 private function processAuthResponse(AuthResponse $authResponse)
 {
     $this->eventDispatcher->dispatchEvent(AuthResponseEvent::NAME, new AuthResponseEvent($authResponse));
     if ($authResponse->isAuthorized()) {
         if ($this->logger) {
             $this->logger->debug("Logging Authenticate true");
         }
         $this->apiService->log($authResponse->getAuthRequestId(), "Authenticate", true);
     }
 }
 /**
  * @depends testReturnsAuthResponseForOkayResponse
  * @param AuthResponse $authResponse
  */
 public function testSetsDeviceIdInAuthResponseForOkResponse(AuthResponse $authResponse)
 {
     $this->assertEquals("Device ID", $authResponse->getDeviceId());
 }
 /**
  * @depends testWhenPostDataIsForAuthYouReceiveAuthResponse
  */
 public function testWhenPostDataIsForAuthTheAuthResponseHasTheCorrectDeviceId(AuthResponse $authResponse)
 {
     $this->assertEquals("Device ID", $authResponse->getDeviceId());
 }
 public function testDeviceId()
 {
     $this->assertEquals("DeviceID", $this->entity->getDeviceId());
 }