/** * @covers OAuth\OAuth2\Service\Facebook::__construct * @covers OAuth\OAuth2\Service\Facebook::getAccessTokenEndpoint */ public function testGetAccessTokenEndpoint() { $service = new Facebook($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface')); $this->assertSame('https://graph.facebook.com/oauth/access_token', $service->getAccessTokenEndpoint()->getAbsoluteUri()); }
/** * @covers OAuth\OAuth2\Service\Facebook::__construct * @covers OAuth\OAuth2\Service\Facebook::getAccessTokenEndpoint */ public function testGetAccessTokenEndpoint() { $service = new Facebook($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface')); $this->assertSame('https://graph.facebook.com/oauth/access_token', (string) $service->getAccessTokenEndpoint()); }