diff --git a/plugins/bc-theme-file/src/BcThemeFilePlugin.php b/plugins/bc-theme-file/src/BcThemeFilePlugin.php index 2cbebdf60c..89a488a7c4 100644 --- a/plugins/bc-theme-file/src/BcThemeFilePlugin.php +++ b/plugins/bc-theme-file/src/BcThemeFilePlugin.php @@ -29,6 +29,7 @@ class BcThemeFilePlugin extends BcPlugin * @param ContainerInterface $container * @checked * @noTodo + * @UnitTest */ public function services(ContainerInterface $container): void { diff --git a/plugins/bc-theme-file/tests/TestCase/BcThemeFilePluginTest.php b/plugins/bc-theme-file/tests/TestCase/BcThemeFilePluginTest.php new file mode 100644 index 0000000000..36ab12ff8b --- /dev/null +++ b/plugins/bc-theme-file/tests/TestCase/BcThemeFilePluginTest.php @@ -0,0 +1,39 @@ +BcThemeFilePlugin = new BcThemeFilePlugin(['name' => 'BcThemeFile']); + } + + public function tearDown(): void + { + unset($this->BcThemeFilePlugin); + parent::tearDown(); + } + + /** + * test services + */ + public function test_services() + { + $container = new Container(); + $this->BcThemeFilePlugin->services($container); + $this->assertTrue($container->has(ThemeFilesServiceInterface::class)); + $this->assertTrue($container->has(ThemeFilesAdminServiceInterface::class)); + $this->assertTrue($container->has(ThemeFoldersServiceInterface::class)); + $this->assertTrue($container->has(ThemeFoldersAdminServiceInterface::class)); + } +} \ No newline at end of file