/** * @covers OAuth\OAuth1\Service\BitBucket::__construct * @covers OAuth\OAuth1\Service\BitBucket::getAuthorizationEndpoint */ public function testGetAuthorizationEndpoint() { $service = new BitBucket($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://bitbucket.org/%21api/1.0/oauth/authenticate', (string) $service->getAuthorizationEndpoint()); }
/** * @covers OAuth\OAuth1\Service\BitBucket::__construct * @covers OAuth\OAuth1\Service\BitBucket::getAuthorizationEndpoint */ public function testGetAuthorizationEndpoint() { $service = new BitBucket($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://bitbucket.org/!api/1.0/oauth/authenticate', $service->getAuthorizationEndpoint()->getAbsoluteUri()); }