diff --git a/module/CLI/test/Install/Plugin/Factory/DefaultConfigCustomizerPluginFactoryTest.php b/module/CLI/test/Install/Plugin/Factory/DefaultConfigCustomizerPluginFactoryTest.php new file mode 100644 index 00000000..509099ed --- /dev/null +++ b/module/CLI/test/Install/Plugin/Factory/DefaultConfigCustomizerPluginFactoryTest.php @@ -0,0 +1,40 @@ +factory = new DefaultConfigCustomizerPluginFactory(); + } + + /** + * @test + */ + public function createsProperService() + { + $instance = $this->factory->__invoke(new ServiceManager(['services' => [ + QuestionHelper::class => $this->prophesize(QuestionHelper::class)->reveal(), + ]]), ApplicationConfigCustomizerPlugin::class); + $this->assertInstanceOf(ApplicationConfigCustomizerPlugin::class, $instance); + + $instance = $this->factory->__invoke(new ServiceManager(['services' => [ + QuestionHelper::class => $this->prophesize(QuestionHelper::class)->reveal(), + ]]), LanguageConfigCustomizerPlugin::class); + $this->assertInstanceOf(LanguageConfigCustomizerPlugin::class, $instance); + } +}