Exemple #1
0
 /**
  * @covers OAuth\OAuth2\Service\Paypal::__construct
  * @covers OAuth\OAuth2\Service\Paypal::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Paypal($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://www.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize', (string) $service->getAuthorizationEndpoint());
 }