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