コード例 #1
0
ファイル: YahooTest.php プロジェクト: Flesh192/magento
 /**
  * @covers OAuth\OAuth1\Service\Yahoo::__construct
  * @covers OAuth\OAuth1\Service\Yahoo::getAccessTokenEndpoint
  */
 public function testGetAccessTokenEndpoint()
 {
     $service = new Yahoo($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://api.login.yahoo.com/oauth/v2/get_token', $service->getAccessTokenEndpoint()->getAbsoluteUri());
 }