Пример #1
0
 /**
  * @covers OAuth\OAuth2\Service\Instagram::__construct
  * @covers OAuth\OAuth2\Service\Instagram::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Instagram($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://api.instagram.com/oauth/authorize/', $service->getAuthorizationEndpoint()->getAbsoluteUri());
 }
Пример #2
0
 /**
  * @covers OAuth\OAuth2\Service\Instagram::__construct
  * @covers OAuth\OAuth2\Service\Instagram::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Instagram($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://api.instagram.com/oauth/authorize/', (string) $service->getAuthorizationEndpoint());
 }