Exemplo n.º 1
0
 /**
  * @covers OAuth\OAuth2\Service\Paypal::__construct
  * @covers OAuth\OAuth2\Service\Paypal::getAccessTokenEndpoint
  */
 public function testGetAccessTokenEndpoint()
 {
     $service = new Paypal($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://api.paypal.com/v1/identity/openidconnect/tokenservice', (string) $service->getAccessTokenEndpoint());
 }
Exemplo n.º 2
0
 /**
  * @covers OAuth\OAuth2\Service\Paypal::__construct
  * @covers OAuth\OAuth2\Service\Paypal::getAccessTokenEndpoint
  */
 public function testGetAccessTokenEndpoint()
 {
     $service = new Paypal($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://api.paypal.com/v1/identity/openidconnect/tokenservice', $service->getAccessTokenEndpoint()->getAbsoluteUri());
 }