示例#1
0
 /**
  * @covers OAuth\OAuth2\Service\Foursquare::__construct
  * @covers OAuth\OAuth2\Service\Foursquare::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Foursquare($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://foursquare.com/oauth2/authenticate', (string) $service->getAuthorizationEndpoint());
 }
示例#2
0
 /**
  * @covers OAuth\OAuth2\Service\Foursquare::__construct
  * @covers OAuth\OAuth2\Service\Foursquare::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Foursquare($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://foursquare.com/oauth2/authenticate', $service->getAuthorizationEndpoint()->getAbsoluteUri());
 }