From 612aeef7dbc3956a329340a24c68aefc9610b741 Mon Sep 17 00:00:00 2001 From: thangnn Date: Fri, 8 Nov 2024 15:42:59 +0700 Subject: [PATCH] Add unitTest_PluginsAdminService_whichPhp --- .../baser-core/src/Service/Admin/PluginsAdminService.php | 1 + .../TestCase/Service/Admin/PluginsAdminServiceTest.php | 8 ++++++++ 2 files changed, 9 insertions(+) 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()); + } + }