/** * @covers Crockett95\ProjectPlace\OAuthService::__construct * @covers Crockett95\ProjectPlace\OAuthService::getAuthorizationEndpoint */ public function testGetAuthorizationEndpoint() { $service = new OAuthService($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'), $this->getMock('\\OAuth\\OAuth1\\Signature\\SignatureInterface')); $this->assertSame(OAuthService::ENDPOINT_AUTHORIZE, $service->getAuthorizationEndpoint()->getAbsoluteUri()); $this->assertSame('https://api.projectplace.com/authorize', $service->getAuthorizationEndpoint()->getAbsoluteUri()); }