From 32e2ab812d4dc028d49553f9a1bf1afea35f8f10 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Tue, 10 Jan 2023 13:11:09 +0800 Subject: [PATCH] * Update uni test case. --- test/model/execution/getbyidlist.php | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/test/model/execution/getbyidlist.php b/test/model/execution/getbyidlist.php index e25e11783e..2ba280606a 100755 --- a/test/model/execution/getbyidlist.php +++ b/test/model/execution/getbyidlist.php @@ -2,6 +2,18 @@ id->range('1-5'); +$execution->name->range('项目1,项目2,迭代1,迭代2,迭代3'); +$execution->type->range('project{2},sprint,stage,kanban'); +$execution->status->range('doing{3},closed,doing'); +$execution->parent->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); su('admin'); /** @@ -12,13 +24,14 @@ pid=1 敏捷项目查询 >> 迭代1 瀑布项目查询 >> stage -看板项目查询 >> project61 +看板项目查询 >> doing */ -$executionIDList = array('101', '131', '161'); +$executionIDList = array('3', '4', '5'); $execution = new executionTest(); -r($execution->getByIdListTest($executionIDList)) && p('101:name') && e('迭代1'); // 敏捷项目查询 -r($execution->getByIdListTest($executionIDList)) && p('131:type') && e('stage'); // 瀑布项目查询 -r($execution->getByIdListTest($executionIDList)) && p('161:code') && e('project61'); // 看板项目查询 \ No newline at end of file +$executionList = $execution->getByIdListTest($executionIDList); +r($executionList) && p('3:name') && e('迭代1'); // 敏捷项目查询 +r($executionList) && p('4:type') && e('stage'); // 瀑布项目查询 +r($executionList) && p('5:status') && e('doing'); // 看板项目查询