Esempio n. 1
0
 /**
  * @covers OAuth\OAuth1\Service\Etsy::__construct
  * @covers OAuth\OAuth1\Service\Etsy::getAccessTokenEndpoint
  */
 public function testGetAccessTokenEndpoint()
 {
     $service = new Etsy($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('http://openapi.etsy.com/v2/oauth/access_token', $service->getAccessTokenEndpoint()->getAbsoluteUri());
 }
Esempio n. 2
0
 /**
  * @covers OAuth\OAuth1\Service\Etsy::__construct
  * @covers OAuth\OAuth1\Service\Etsy::getAccessTokenEndpoint
  */
 public function testGetAccessTokenEndpoint()
 {
     $service = new Etsy($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://openapi.etsy.com/v2/oauth/access_token', (string) $service->getAccessTokenEndpoint());
 }