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