public function testSetRedirectLocation() { $this->_response->setRedirectLocation('http://redirect'); $this->_response->setAuthorizationCode('code_123'); $this->assertEquals('http://redirect/?code=code_123', $this->_response->getHttpResponse()->getHeaders()->get('Location')->getFieldValue()); }
protected function validResponse(Response\Authorize\Simple $response) { $this->logInfo('dispatch OK, returning response...'); return $response->getHttpResponse(); }