Esempio n. 1
0
 /**
  * @covers OAuth\OAuth1\Service\BitBucket::__construct
  * @covers OAuth\OAuth1\Service\BitBucket::getRequestTokenEndpoint
  */
 public function testGetRequestTokenEndpoint()
 {
     $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/request_token', (string) $service->getRequestTokenEndpoint());
 }
Esempio n. 2
0
 /**
  * @covers OAuth\OAuth1\Service\BitBucket::__construct
  * @covers OAuth\OAuth1\Service\BitBucket::getRequestTokenEndpoint
  */
 public function testGetRequestTokenEndpoint()
 {
     $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/request_token', $service->getRequestTokenEndpoint()->getAbsoluteUri());
 }