Exemplo n.º 1
0
 /**
  * @covers OAuth\OAuth1\Service\Flickr::__construct
  * @covers OAuth\OAuth1\Service\Flickr::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Flickr($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.flickr.com/services/oauth/authorize', $service->getAuthorizationEndpoint()->getAbsoluteUri());
 }
Exemplo n.º 2
0
 /**
  * @covers OAuth\OAuth1\Service\Flickr::__construct
  * @covers OAuth\OAuth1\Service\Flickr::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Flickr($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.flickr.com/services/oauth/authorize', (string) $service->getAuthorizationEndpoint());
 }