Files
EasySoft-ZenTaoPMS/module/kanban/test/model/createexecutionlane.php
T
2023-09-13 16:38:17 +08:00

45 lines
2.1 KiB
PHP
Executable File

#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/kanban.class.php';
su('admin');
zdTable('kanbanlane')->gen(0);
/**
title=测试 kanbanModel->createExecutionLane();
cid=1
pid=1
创建执行101的泳道 >> 3
创建执行101 需求的泳道 >> 2
创建执行101 需求 按类别分组的泳道 >> 3
创建执行101的泳道 >> 3
创建执行102 需求 按来源分组的泳道 >> 3
创建执行102 任务 按优先级分组的泳道 >> 4
创建执行102 任务 按需求分组的泳道 >> 7
创建执行103的泳道 >> 3
创建执行103 bug 按严重程度分组的泳道 >> 4
创建执行103 bug 按模块分组的泳道 >> 8
创建执行103 bug 按指派给分组的泳道 >> 10
创建执行104的泳道 >> 3
创建执行105的泳道 >> 3
*/
$executionIDList = array('101', '102', '103', '104', '105');
$typeIDList = array('all', 'story', 'task', 'bug');
$kanban = new kanbanTest();
r($kanban->createExecutionLaneTest($executionIDList[0])) && p() && e('3'); // 创建执行101的泳道
r($kanban->createExecutionLaneTest($executionIDList[0], $typeIDList[1])) && p() && e('2'); // 创建执行101 需求的泳道
r($kanban->createExecutionLaneTest($executionIDList[1])) && p() && e('3'); // 创建执行101的泳道
r($kanban->createExecutionLaneTest($executionIDList[1], $typeIDList[1])) && p() && e('2'); // 创建执行102 需求 按来源分组的泳道
r($kanban->createExecutionLaneTest($executionIDList[1], $typeIDList[2])) && p() && e('3'); // 创建执行102 任务 按优先级分组的泳道
r($kanban->createExecutionLaneTest($executionIDList[2])) && p() && e('3'); // 创建执行103的泳道
r($kanban->createExecutionLaneTest($executionIDList[2], $typeIDList[3])) && p() && e('2'); // 创建执行103 bug 按严重程度分组的泳道
r($kanban->createExecutionLaneTest($executionIDList[3])) && p() && e('3'); // 创建执行104的泳道
r($kanban->createExecutionLaneTest($executionIDList[4])) && p() && e('3'); // 创建执行105的泳道