2018-09-29 09:16:40 +03:00
|
|
|
<?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
|
|
|
|
{
|
2018-11-20 21:30:27 +03:00
|
|
|
/** @var AuthenticationPluginManagerFactory */
|
2018-09-29 09:16:40 +03:00
|
|
|
private $factory;
|
|
|
|
|
2019-02-16 12:53:45 +03:00
|
|
|
public function setUp(): void
|
2018-09-29 09:16:40 +03:00
|
|
|
{
|
|
|
|
$this->factory = new AuthenticationPluginManagerFactory();
|
|
|
|
}
|
|
|
|
|
2019-02-17 22:28:34 +03:00
|
|
|
/** @test */
|
2018-09-29 09:16:40 +03:00
|
|
|
public function serviceIsProperlyCreated()
|
|
|
|
{
|
|
|
|
$instance = $this->factory->__invoke(new ServiceManager(['services' => [
|
|
|
|
'config' => [],
|
|
|
|
]]), '');
|
|
|
|
$this->assertInstanceOf(AuthenticationPluginManager::class, $instance);
|
|
|
|
}
|
|
|
|
}
|