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