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