コード例 #1
0
ファイル: BoxTest.php プロジェクト: kunal981/php-oauth
 /**
  * @covers OAuth\OAuth2\Service\Box::__construct
  * @covers OAuth\OAuth2\Service\Box::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Box($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://www.box.com/api/oauth2/authorize', (string) $service->getAuthorizationEndpoint());
 }
コード例 #2
0
ファイル: BoxTest.php プロジェクト: Flesh192/magento
 /**
  * @covers OAuth\OAuth2\Service\Box::__construct
  * @covers OAuth\OAuth2\Service\Box::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Box($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://www.box.com/api/oauth2/authorize', $service->getAuthorizationEndpoint()->getAbsoluteUri());
 }