Files
2024-03-17 11:39:27 +07:00

25 lines
567 B
PHP

<?php
/**
* SocialConnect project
* @author: Patsura Dmitry https://github.com/ovr <[email protected]>
*/
namespace Test;
class ServiceTest extends TestCase
{
public function testConstructSuccess()
{
$service = $this->getService();
$this->assertInstanceOf(\SocialConnect\Auth\Service::class, $service);
}
public function testGetProvider()
{
$service = $this->getService();
$vkProvider = $service->getProvider('Vk');
$this->assertInstanceOf(\SocialConnect\OAuth2\Provider\Vk::class, $vkProvider);
}
}