/** * @covers OAuth\OAuth1\Service\ScoopIt::__construct * @covers OAuth\OAuth1\Service\ScoopIt::getAccessTokenEndpoint */ public function testGetAccessTokenEndpoint() { $service = new ScoopIt($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'), $this->getMock('\\OAuth\\OAuth1\\Signature\\SignatureInterface')); $this->assertSame('https://www.scoop.it/oauth/access', (string) $service->getAccessTokenEndpoint()); }
/** * @covers OAuth\OAuth1\Service\ScoopIt::__construct * @covers OAuth\OAuth1\Service\ScoopIt::getAccessTokenEndpoint */ public function testGetAccessTokenEndpoint() { $service = new ScoopIt($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://www.scoop.it/oauth/access', $service->getAccessTokenEndpoint()->getAbsoluteUri()); }