Exemplo n.º 1
0
 /**
  * @covers OAuth\OAuth2\Service\Microsoft::__construct
  * @covers OAuth\OAuth2\Service\Microsoft::getAccessTokenEndpoint
  */
 public function testGetAccessTokenEndpoint()
 {
     $service = new Microsoft($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://login.live.com/oauth20_token.srf', $service->getAccessTokenEndpoint()->getAbsoluteUri());
 }
Exemplo n.º 2
0
 /**
  * @covers OAuth\OAuth2\Service\Microsoft::__construct
  * @covers OAuth\OAuth2\Service\Microsoft::getAccessTokenEndpoint
  */
 public function testGetAccessTokenEndpoint()
 {
     $service = new Microsoft($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://login.live.com/oauth20_token.srf', (string) $service->getAccessTokenEndpoint());
 }