예제 #1
0
 /**
  * @covers OAuth\OAuth2\Service\Amazon::__construct
  * @covers OAuth\OAuth2\Service\Amazon::getAccessTokenEndpoint
  */
 public function testGetAccessTokenEndpoint()
 {
     $service = new Amazon($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://www.amazon.com/ap/oatoken', $service->getAccessTokenEndpoint()->getAbsoluteUri());
 }
예제 #2
0
 /**
  * @covers OAuth\OAuth2\Service\Amazon::__construct
  * @covers OAuth\OAuth2\Service\Amazon::getAccessTokenEndpoint
  */
 public function testGetAccessTokenEndpoint()
 {
     $service = new Amazon($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://www.amazon.com/ap/oatoken', (string) $service->getAccessTokenEndpoint());
 }