/**
  * @depends testReturnsAuthResponseForOkayResponse
  * @param AuthResponse $authResponse
  */
 public function testSetsAuthorizedTrueInAuthResponseForOkResponseAndTrue(AuthResponse $authResponse)
 {
     \Phake::when($this->cryptService)->decryptRSA(\Phake::anyParameters())->thenReturn('{ "device_id": "Device ID", "response": "true", "auth_request": "Auth Request", "app_pins": "APP,PINS"}');
     $this->assertTrue($authResponse->isAuthorized());
 }
 /**
  * @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);
     }
 }
 public function testIsAuthorized()
 {
     $this->assertTrue($this->entity->isAuthorized());
 }