diff --git a/plugins/baser-core/src/Service/Admin/PluginsAdminService.php b/plugins/baser-core/src/Service/Admin/PluginsAdminService.php index 6c56864554..2e64bc6248 100644 --- a/plugins/baser-core/src/Service/Admin/PluginsAdminService.php +++ b/plugins/baser-core/src/Service/Admin/PluginsAdminService.php @@ -126,6 +126,7 @@ public function getViewVarsForUpdate(EntityInterface $entity): array * @return mixed|string * @checked * @noTodo + * @unitTest */ public function whichPhp() { diff --git a/plugins/baser-core/tests/TestCase/Service/Admin/PluginsAdminServiceTest.php b/plugins/baser-core/tests/TestCase/Service/Admin/PluginsAdminServiceTest.php index b902aeae38..cc2953555d 100644 --- a/plugins/baser-core/tests/TestCase/Service/Admin/PluginsAdminServiceTest.php +++ b/plugins/baser-core/tests/TestCase/Service/Admin/PluginsAdminServiceTest.php @@ -158,4 +158,12 @@ public function test_isPluginsDirWritable() $this->assertTrue($result); } + /** + *test whichPhp + */ + public function testWhichPhp() + { + $this->assertEquals('/usr/local/bin/php', $this->PluginsAdmin->whichPhp()); + } + }