/** * @covers OAuth\OAuth2\Service\Facebook::__construct * @covers OAuth\OAuth2\Service\Facebook::getAuthorizationEndpoint */ public function testGetAuthorizationEndpoint() { $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://www.facebook.com/dialog/oauth', $service->getAuthorizationEndpoint()->getAbsoluteUri()); }
/** * @covers OAuth\OAuth2\Service\Facebook::__construct * @covers OAuth\OAuth2\Service\Facebook::getAuthorizationEndpoint */ public function testGetAuthorizationEndpoint() { $service = new Facebook($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface')); $this->assertSame('https://www.facebook.com/dialog/oauth', (string) $service->getAuthorizationEndpoint()); }