shlink/module/Rest/test/Authentication/AuthenticationPluginManagerFactoryTest.php

30 lines
839 B
PHP
Raw Normal View History

<?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;
2019-02-16 03:53:45 -06:00
public function setUp(): void
{
$this->factory = new AuthenticationPluginManagerFactory();
}
2019-02-17 13:28:34 -06:00
/** @test */
public function serviceIsProperlyCreated()
{
$instance = $this->factory->__invoke(new ServiceManager(['services' => [
'config' => [],
]]), '');
$this->assertInstanceOf(AuthenticationPluginManager::class, $instance);
}
}