* Add case of execution model.

This commit is contained in:
田淑杰
2023-01-11 14:40:01 +08:00
parent 243a877816
commit fda9b8eee3
2 changed files with 48 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/env php
<?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('execution,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->gen(5);
/**
title=测试 executionModel::accessDenied();
cid=1
pid=1
检查下拉菜单默认选中迭代1 >> 迭代1
*/
$executionTester = new executionTest();
$html = $executionTester->selectTest('3', 'execution', 'all');
r(strip_tags($html)) && p() && e('迭代1'); // 检查下拉菜单默认选中迭代1