diff --git a/plugins/baser-core/src/Service/Admin/PluginsAdminService.php b/plugins/baser-core/src/Service/Admin/PluginsAdminService.php index 4cedbe29c0..6c56864554 100644 --- a/plugins/baser-core/src/Service/Admin/PluginsAdminService.php +++ b/plugins/baser-core/src/Service/Admin/PluginsAdminService.php @@ -206,6 +206,7 @@ public function getViewVarsForAdd() * @return bool * @checked * @noTodo + * @unitTest */ public function isPluginsDirWritable() { diff --git a/plugins/baser-core/tests/TestCase/Service/Admin/PluginsAdminServiceTest.php b/plugins/baser-core/tests/TestCase/Service/Admin/PluginsAdminServiceTest.php index cc77f54d8b..b902aeae38 100644 --- a/plugins/baser-core/tests/TestCase/Service/Admin/PluginsAdminServiceTest.php +++ b/plugins/baser-core/tests/TestCase/Service/Admin/PluginsAdminServiceTest.php @@ -149,4 +149,13 @@ public function test_getViewVarsForAdd() $this->assertTrue(isset($vars['isPluginsDirWritable'])); } + /** + * test isPluginsDirWritable + */ + public function test_isPluginsDirWritable() + { + $result = $this->PluginsAdmin->isPluginsDirWritable(); + $this->assertTrue($result); + } + }