From e69213f6a2079eb4193abf1bed101e777bb8584f Mon Sep 17 00:00:00 2001 From: thangnn Date: Tue, 12 Nov 2024 20:20:48 +0700 Subject: [PATCH] Add unitTest_Annotation --- plugins/baser-core/src/Service/PagesService.php | 1 + plugins/baser-core/src/Service/PermissionGroupsService.php | 1 + plugins/baser-core/src/Service/PermissionsService.php | 1 + plugins/baser-core/src/Service/PluginsService.php | 1 + plugins/bc-custom-content/src/Model/Table/CustomEntriesTable.php | 1 + 5 files changed, 5 insertions(+) diff --git a/plugins/baser-core/src/Service/PagesService.php b/plugins/baser-core/src/Service/PagesService.php index db5106b9d8..c211fff261 100644 --- a/plugins/baser-core/src/Service/PagesService.php +++ b/plugins/baser-core/src/Service/PagesService.php @@ -226,6 +226,7 @@ public function getIndex(array $queryParams = []): Query * @return Query * @checked * @noTodo + * @unitTest */ protected function createIndexConditions(Query $query, $options = []) { diff --git a/plugins/baser-core/src/Service/PermissionGroupsService.php b/plugins/baser-core/src/Service/PermissionGroupsService.php index 543befc3ac..44d4294f77 100644 --- a/plugins/baser-core/src/Service/PermissionGroupsService.php +++ b/plugins/baser-core/src/Service/PermissionGroupsService.php @@ -246,6 +246,7 @@ public function buildByUserGroup(int $userGroupId) * @return bool * @checked * @noTodo + * @unitTest */ public function rebuildByUserGroup(int $userGroupId) { diff --git a/plugins/baser-core/src/Service/PermissionsService.php b/plugins/baser-core/src/Service/PermissionsService.php index 613d66975e..be26b3f72f 100644 --- a/plugins/baser-core/src/Service/PermissionsService.php +++ b/plugins/baser-core/src/Service/PermissionsService.php @@ -677,6 +677,7 @@ public function getNamesById($ids): array * @return array * @checked * @noTodo + * @unitTest */ public function getControlSource(string $field, array $options = []) { diff --git a/plugins/baser-core/src/Service/PluginsService.php b/plugins/baser-core/src/Service/PluginsService.php index f5d3a139f4..61d49be3d4 100644 --- a/plugins/baser-core/src/Service/PluginsService.php +++ b/plugins/baser-core/src/Service/PluginsService.php @@ -738,6 +738,7 @@ public function add(array $postData) * - `versions`: 取得可能なコアのバージョンリスト * @checked * @noTodo + * @unitTest */ public function getAvailableCoreVersionInfo() { diff --git a/plugins/bc-custom-content/src/Model/Table/CustomEntriesTable.php b/plugins/bc-custom-content/src/Model/Table/CustomEntriesTable.php index 86f8df7b28..0408d89e25 100644 --- a/plugins/bc-custom-content/src/Model/Table/CustomEntriesTable.php +++ b/plugins/bc-custom-content/src/Model/Table/CustomEntriesTable.php @@ -442,6 +442,7 @@ public function setValidateHankaku(Validator $validator, CustomLink $link): Vali * @return Validator * @checked * @noTodo + * @unitTest */ public function setValidateZenkakuKatakana(Validator $validator, CustomLink $link): Validator {