/** * @covers OAuth\OAuth1\Service\Tumblr::__construct * @covers OAuth\OAuth1\Service\Tumblr::getRequestTokenEndpoint */ public function testGetRequestTokenEndpoint() { $service = new Tumblr($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'), $this->getMock('\\OAuth\\OAuth1\\Signature\\SignatureInterface')); $this->assertSame('https://www.tumblr.com/oauth/request_token', $service->getRequestTokenEndpoint()->getAbsoluteUri()); }
/** * @covers OAuth\OAuth1\Service\Tumblr::__construct * @covers OAuth\OAuth1\Service\Tumblr::getRequestTokenEndpoint */ public function testGetRequestTokenEndpoint() { $service = new Tumblr($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'), $this->getMock('\\OAuth\\OAuth1\\Signature\\SignatureInterface')); $this->assertSame('https://www.tumblr.com/oauth/request_token', (string) $service->getRequestTokenEndpoint()); }