From 0a1ffed860c5245d1fbea866b37bdf85fe428649 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Mon, 9 Jan 2023 15:55:34 +0800 Subject: [PATCH] * Update uni test. --- test/model/execution/suspend.php | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/test/model/execution/suspend.php b/test/model/execution/suspend.php index 5fdc01e33c..54987d06c8 100755 --- a/test/model/execution/suspend.php +++ b/test/model/execution/suspend.php @@ -2,7 +2,14 @@ switchDB(); + +$execution = zdTable('project'); +$execution->id->range('1-7'); +$execution->name->range('项目1,迭代1,迭代2,迭代3,迭代4,迭代5,迭代6'); +$execution->type->range('project{2},sprint{2},waterfall{2},kanban{2}'); +$execution->status->range('doing,wait'); +$execution->gen(7); + su('admin'); /** @@ -11,17 +18,17 @@ title=测试executionModel->suspendTest(); cid=1 pid=1 -wait敏捷执行挂起 >> status,wait,suspended +wait敏捷执行挂起 >> status,wait,suspended doing敏捷执行挂起 >> status,doing,suspended -wait瀑布执行挂起 >> status,wait,suspended +wait瀑布执行挂起 >> status,wait,suspended doing瀑布执行挂起 >> status,doing,suspended -wait看板执行挂起 >> status,wait,suspended +wait看板执行挂起 >> status,wait,suspended doing看板执行挂起 >> status,doing,suspended -挂起后再次挂起 >> 0 +挂起后再次挂起 >> 0 */ -$executionIDList = array('103', '104', '133', '134', '163', '164'); +$executionIDList = array('2', '3', '4', '5', '6', '7'); $execution = new executionTest(); r($execution->suspendTest($executionIDList[0])) && p('0:field,old,new') && e('status,wait,suspended'); // wait敏捷执行挂起 @@ -31,4 +38,3 @@ r($execution->suspendTest($executionIDList[3])) && p('0:field,old,new') && e('st r($execution->suspendTest($executionIDList[4])) && p('0:field,old,new') && e('status,wait,suspended'); // wait看板执行挂起 r($execution->suspendTest($executionIDList[5])) && p('0:field,old,new') && e('status,doing,suspended'); // doing看板执行挂起 r($execution->suspendTest($executionIDList[0])) && p() && e('0'); // 挂起后再次挂起 -$db->restoreDB(); \ No newline at end of file