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