/**
  * @covers OAuth\OAuth2\Service\Dropbox::__construct
  * @covers OAuth\OAuth2\Service\Dropbox::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Dropbox($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://www.dropbox.com/1/oauth2/authorize', $service->getAuthorizationEndpoint()->getAbsoluteUri());
 }
Example #2
0
 /**
  * @covers OAuth\OAuth2\Service\Dropbox::__construct
  * @covers OAuth\OAuth2\Service\Dropbox::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Dropbox($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://www.dropbox.com/1/oauth2/authorize', (string) $service->getAuthorizationEndpoint());
 }