/** * @covers OAuth\OAuth2\Service\SoundCloud::__construct * @covers OAuth\OAuth2\Service\SoundCloud::getAuthorizationEndpoint */ public function testGetAuthorizationEndpoint() { $service = new SoundCloud($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface')); $this->assertSame('https://soundcloud.com/connect', $service->getAuthorizationEndpoint()->getAbsoluteUri()); }
/** * @covers OAuth\OAuth2\Service\SoundCloud::__construct * @covers OAuth\OAuth2\Service\SoundCloud::getAuthorizationEndpoint */ public function testGetAuthorizationEndpoint() { $service = new SoundCloud($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface')); $this->assertSame('https://soundcloud.com/connect', (string) $service->getAuthorizationEndpoint()); }