Exemple #1
0
 /**
  * @covers OAuth\OAuth2\Service\Google::__construct
  * @covers OAuth\OAuth2\Service\Google::getAccessTokenEndpoint
  */
 public function testGetAccessTokenEndpoint()
 {
     $service = new Google($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://accounts.google.com/o/oauth2/token', $service->getAccessTokenEndpoint()->getAbsoluteUri());
 }
Exemple #2
0
 /**
  * @covers OAuth\OAuth2\Service\Google::__construct
  * @covers OAuth\OAuth2\Service\Google::getAccessTokenEndpoint
  */
 public function testGetAccessTokenEndpoint()
 {
     $service = new Google($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://accounts.google.com/o/oauth2/token', (string) $service->getAccessTokenEndpoint());
 }