From aad8bef1400a5718c4bf36860533f7982c663ee9 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Wed, 11 Jan 2023 10:35:04 +0800 Subject: [PATCH] * Update uni test. --- .../execution/gettaskgroupbyexecution.php | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/test/model/execution/gettaskgroupbyexecution.php b/test/model/execution/gettaskgroupbyexecution.php index c585057bdd..4ae3838120 100755 --- a/test/model/execution/gettaskgroupbyexecution.php +++ b/test/model/execution/gettaskgroupbyexecution.php @@ -2,6 +2,31 @@ id->range('1-5'); +$execution->name->range('项目1,项目2,迭代1,迭代2,迭代3'); +$execution->type->range('project{2},sprint,stage,kanban'); +$execution->status->range('doing'); +$execution->parent->range('0,0,1,1,2'); +$execution->project->range('0,0,1,1,2'); +$execution->grade->range('2{2},1{3}'); +$execution->path->range('1,2,`1,3`,`1,4`,`2,5`')->prefix(',')->postfix(','); +$execution->begin->range('20230102 000000:0')->type('timestamp')->format('YY/MM/DD'); +$execution->end->range('20230212 000000:0')->type('timestamp')->format('YY/MM/DD'); +$execution->gen(5); + +$task = zdTable('task'); +$task->id->range('1-10'); +$task->name->range('1-10')->prefix('任务'); +$task->execution->range('3-5'); +$task->type->range('test,devel'); +$task->status->range('wait,doing'); +$task->estimate->range('1-10'); +$task->left->range('1-10'); +$task->consumed->range('1-10'); +$task->gen(10); + su('admin'); /** @@ -10,13 +35,13 @@ title=测试 executionModel->getTaskGroupByExecution(); cid=1 pid=1 -测试空数据 >> 0 +测试空数据 >> 0 测试获取执行的任务 >> 3 */ -$executionIdList = array(0, 1, 101, 131, 161); +$executionIdList = array(0, 3, 4, 5); $execution = new executionTest();