* Add case of execution model.

This commit is contained in:
田淑杰
2023-01-09 16:02:52 +08:00
parent 4ecca79607
commit e4545cad37
+14 -1
View File
@@ -2,8 +2,21 @@
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/execution.class.php';
zdTable('user')->gen(5);
su('admin');
$execution = zdTable('project');
$execution->id->range('1-5');
$execution->name->range('项目集1,项目1,迭代1,阶段1,看板1');
$execution->type->range('program,project,sprint,stage,kanban');
$execution->parent->range('0,1,2{3}');
$execution->status->range('wait{3},suspended,closed,doing');
$execution->openedBy->range('admin,user1');
$execution->begin->range('20220112 000000:0')->type('timestamp')->format('YY/MM/DD');
$execution->end->range('20220212 000000:0')->type('timestamp')->format('YY/MM/DD');
$execution->order->range('1-5');
$execution->gen(5);
/**
title=测试executionModel->fixOrderTest();
@@ -15,4 +28,4 @@ pid=1
*/
$execution = new executionTest();
r($execution->fixOrderTest()) && p('101:order') && e('15'); // 重置order
r($execution->fixOrderTest()) && p('3:order') && e('15'); // 重置order