/** * @covers Crockett95\ProjectPlace\OAuthService::__construct * @covers Crockett95\ProjectPlace\OAuthService::getAccessTokenEndpoint */ public function testGetAccessTokenEndpoint() { $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('https://api.projectplace.com/token', $service->getAccessTokenEndpoint()->getAbsoluteUri()); }