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