/** * @covers OAuth\OAuth2\Service\Vkontakte::__construct * @covers OAuth\OAuth2\Service\Vkontakte::getAccessTokenEndpoint */ public function testGetAccessTokenEndpoint() { $service = new Vkontakte($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface')); $this->assertSame('https://oauth.vk.com/access_token', (string) $service->getAccessTokenEndpoint()); }
/** * @covers OAuth\OAuth2\Service\Vkontakte::__construct * @covers OAuth\OAuth2\Service\Vkontakte::getAccessTokenEndpoint */ public function testGetAccessTokenEndpoint() { $service = new Vkontakte($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface')); $this->assertSame('https://oauth.vk.com/access_token', $service->getAccessTokenEndpoint()->getAbsoluteUri()); }