mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-19 01:22:38 +03:00
34 lines
857 B
PHP
34 lines
857 B
PHP
|
<?php
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace ShlinkioTest\Shlink\Rest\Authentication;
|
||
|
|
||
|
use PHPUnit\Framework\TestCase;
|
||
|
use Shlinkio\Shlink\Rest\Authentication\AuthenticationPluginManager;
|
||
|
use Shlinkio\Shlink\Rest\Authentication\AuthenticationPluginManagerFactory;
|
||
|
use Zend\ServiceManager\ServiceManager;
|
||
|
|
||
|
class AuthenticationPluginManagerFactoryTest extends TestCase
|
||
|
{
|
||
|
/**
|
||
|
* @var AuthenticationPluginManagerFactory
|
||
|
*/
|
||
|
private $factory;
|
||
|
|
||
|
public function setUp()
|
||
|
{
|
||
|
$this->factory = new AuthenticationPluginManagerFactory();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @test
|
||
|
*/
|
||
|
public function serviceIsProperlyCreated()
|
||
|
{
|
||
|
$instance = $this->factory->__invoke(new ServiceManager(['services' => [
|
||
|
'config' => [],
|
||
|
]]), '');
|
||
|
$this->assertInstanceOf(AuthenticationPluginManager::class, $instance);
|
||
|
}
|
||
|
}
|