From f8b3b0264fd1b2d4d3a9cbf5e0dd6c192526646d Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 11 Oct 2024 08:45:21 +0800 Subject: [PATCH] + [task#130253,doing,0.2h] add unit test of taskModel::getUnclosedTasksByExecution. --- module/task/test/lib/task.unittest.class.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/module/task/test/lib/task.unittest.class.php b/module/task/test/lib/task.unittest.class.php index 216ae52990..56e5db70a8 100755 --- a/module/task/test/lib/task.unittest.class.php +++ b/module/task/test/lib/task.unittest.class.php @@ -2201,4 +2201,24 @@ class taskTest return $this->objectModel->getListByCondition($condition, $orderBy); } + + /** + * 获取执行未关闭的任务。 + * Get unclosed tasks by execution. + * + * @param array|int $executionID + * @access public + * @return string|false + */ + public function getUnclosedTasksByExecutionTest(array|int $executionID): string|false + { + $tasks = $this->objectModel->getUnclosedTasksByExecution($executionID); + if(!$tasks) return false; + + if(is_array($tasks)) + { + } + $return = rtrim($return, ';'); + return $return; + } }