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