From 5d4f30e1f89c2fb7d0df227e1ba6473160537334 Mon Sep 17 00:00:00 2001 From: liugang Date: Fri, 7 Nov 2025 11:30:32 +0800 Subject: [PATCH] * [misc] Update unit tests for actionTao::processCreateChildrenActionExtra() method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../tao/processcreatechilrenactionextra.php | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/module/action/test/tao/processcreatechilrenactionextra.php b/module/action/test/tao/processcreatechilrenactionextra.php index 0e8d66a2ff..325cb27453 100755 --- a/module/action/test/tao/processcreatechilrenactionextra.php +++ b/module/action/test/tao/processcreatechilrenactionextra.php @@ -4,17 +4,17 @@ declare(strict_types=1); /** -title=- 执行actionTest模块的processCreateChildrenActionExtraTest方法,参数是'1' 属性extra @ +title=测试 actionTao::processCreateChildrenActionExtra(); timeout=0 -cid=1 +cid=0 -- 执行actionTest模块的processCreateChildrenActionExtraTest方法,参数是'1' 属性extra @#1 开发任务11 -- 执行actionTest模块的processCreateChildrenActionExtraTest方法,参数是'1, 2, 3' - - 属性extra @#1 开发任务11 -- 执行actionTest模块的processCreateChildrenActionExtraTest方法,参数是'999' 属性extra @0 -- 执行actionTest模块的processCreateChildrenActionExtraTest方法,参数是'' 属性extra @0 -- 执行actionTest模块的processCreateChildrenActionExtraTest方法,参数是'1, 999, 2' - - 属性extra @#1 开发任务11 +- 测试单个有效任务ID >> 返回格式化的任务信息 +- 测试多个有效任务ID >> 返回多个任务信息 +- 测试不存在的任务ID >> 返回空字符串 +- 测试空字符串输入 >> 返回空字符串 +- 测试混合有效和无效ID >> 只返回有效任务信息 +- 测试大量任务ID >> 正确处理所有有效任务 +- 测试包含空格的ID字符串 >> 正确处理并过滤空格 */ @@ -30,6 +30,8 @@ $actionTest = new actionTest(); r($actionTest->processCreateChildrenActionExtraTest('1')) && p('extra') && e('#1 开发任务11'); r($actionTest->processCreateChildrenActionExtraTest('1,2,3')) && p('extra') && e('#1 开发任务11, #2 开发任务12, #3 开发任务13'); -r($actionTest->processCreateChildrenActionExtraTest('999')) && p('extra') && e('0'); -r($actionTest->processCreateChildrenActionExtraTest('')) && p('extra') && e('0'); -r($actionTest->processCreateChildrenActionExtraTest('1,999,2')) && p('extra') && e('#1 开发任务11, #2 开发任务12'); \ No newline at end of file +r($actionTest->processCreateChildrenActionExtraTest('999')) && p('extra') && e('~~'); +r($actionTest->processCreateChildrenActionExtraTest('')) && p('extra') && e('~~'); +r($actionTest->processCreateChildrenActionExtraTest('1,999,2')) && p('extra') && e('#1 开发任务11, #2 开发任务12'); +r($actionTest->processCreateChildrenActionExtraTest('1,2,3,4,5')) && p('extra') && e('#1 开发任务11, #2 开发任务12, #3 开发任务13, #4 开发任务14, #5 开发任务15'); +r($actionTest->processCreateChildrenActionExtraTest('1, 2, 3')) && p('extra') && e('#1 开发任务11, #2 开发任务12, #3 开发任务13');