mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-25 08:21:11 -06:00
34 lines
854 B
PHP
34 lines
854 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace ShlinkioTest\Shlink\Installer\Factory;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Shlinkio\Shlink\Installer\Factory\InstallApplicationFactory;
|
|
use Symfony\Component\Console\Application;
|
|
use Symfony\Component\Filesystem\Filesystem;
|
|
use Zend\ServiceManager\ServiceManager;
|
|
|
|
class InstallApplicationFactoryTest extends TestCase
|
|
{
|
|
/** @var InstallApplicationFactory */
|
|
private $factory;
|
|
|
|
public function setUp()
|
|
{
|
|
$this->factory = new InstallApplicationFactory();
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function serviceIsCreated()
|
|
{
|
|
$instance = $this->factory->__invoke(new ServiceManager(['services' => [
|
|
Filesystem::class => $this->prophesize(Filesystem::class)->reveal(),
|
|
]]), '');
|
|
|
|
$this->assertInstanceOf(Application::class, $instance);
|
|
}
|
|
}
|