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