/** * @covers OAuth\OAuth2\Service\Foursquare::__construct * @covers OAuth\OAuth2\Service\Foursquare::getAccessTokenEndpoint */ public function testGetAccessTokenEndpoint() { $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/access_token', (string) $service->getAccessTokenEndpoint()); }
/** * @covers OAuth\OAuth2\Service\Foursquare::__construct * @covers OAuth\OAuth2\Service\Foursquare::getAccessTokenEndpoint */ public function testGetAccessTokenEndpoint() { $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/access_token', $service->getAccessTokenEndpoint()->getAbsoluteUri()); }