/** * @covers OAuth\OAuth2\Service\Heroku::__construct * @covers OAuth\OAuth2\Service\Heroku::getAuthorizationEndpoint */ public function testGetAuthorizationEndpoint() { $service = new Heroku($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface')); $this->assertSame('https://id.heroku.com/oauth/authorize', (string) $service->getAuthorizationEndpoint()); }
/** * @covers OAuth\OAuth2\Service\Heroku::__construct * @covers OAuth\OAuth2\Service\Heroku::getAuthorizationEndpoint */ public function testGetAuthorizationEndpoint() { $service = new Heroku($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface')); $this->assertSame('https://id.heroku.com/oauth/authorize', $service->getAuthorizationEndpoint()->getAbsoluteUri()); }