From e0f18f8d1fd45709d6f8794a7a0dd786c3e89c2e Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 6 Jul 2017 18:06:11 +0200 Subject: [PATCH] Created InstallApplicationFactoryTest --- .../Factory/InstallApplicationFactoryTest.php | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 module/CLI/test/Factory/InstallApplicationFactoryTest.php diff --git a/module/CLI/test/Factory/InstallApplicationFactoryTest.php b/module/CLI/test/Factory/InstallApplicationFactoryTest.php new file mode 100644 index 00000000..35820bba --- /dev/null +++ b/module/CLI/test/Factory/InstallApplicationFactoryTest.php @@ -0,0 +1,35 @@ +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); + } +}