Esempio n. 1
0
 /**
  * @covers OAuth\OAuth2\Service\Reddit::__construct
  * @covers OAuth\OAuth2\Service\Reddit::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Reddit($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://ssl.reddit.com/api/v1/authorize', $service->getAuthorizationEndpoint()->getAbsoluteUri());
 }
Esempio n. 2
0
 /**
  * @covers OAuth\OAuth2\Service\Reddit::__construct
  * @covers OAuth\OAuth2\Service\Reddit::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Reddit($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://ssl.reddit.com/api/v1/authorize', (string) $service->getAuthorizationEndpoint());
 }