36 lines
2.4 KiB
PHP
Executable File
36 lines
2.4 KiB
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
|
include dirname(dirname(dirname(__FILE__))) . '/class/kanban.class.php';
|
|
su('admin');
|
|
|
|
/**
|
|
|
|
title=测试 kanbanModel->createRDColumn();
|
|
cid=1
|
|
pid=1
|
|
|
|
测试创建执行161 区域101 泳道组101 泳道101 story执行看板的泳道列 >> 22
|
|
测试创建执行161 区域101 泳道组102 泳道102 bug执行看板的泳道列 >> 18
|
|
测试创建执行161 区域101 泳道组103 泳道103 task执行看板的泳道列 >> 14
|
|
测试创建执行162 区域102 泳道组104 泳道104 story执行看板的泳道列 >> 22
|
|
测试创建执行162 区域102 泳道组105 泳道105 bug执行看板的泳道列 >> 18
|
|
测试创建执行162 区域102 泳道组106 泳道106 task执行看板的泳道列 >> 14
|
|
|
|
*/
|
|
|
|
$regionIDList = array('101', '102');
|
|
$groupIDList = array('101', '102', '103', '104', '105', '106');
|
|
$laneIDList = array('101', '102', '103', '104', '105', '106');
|
|
$laneTypeList = array('story', 'bug', 'task');
|
|
$executionIDList = array('161', '162');
|
|
|
|
$kanban = new kanbanTest();
|
|
|
|
r($kanban->createRDColumnTest($regionIDList[0], $groupIDList[0], $laneIDList[0], $laneTypeList[0], $executionIDList[0])) && p() && e('22'); // 测试创建执行161 区域101 泳道组101 泳道101 story执行看板的泳道列
|
|
r($kanban->createRDColumnTest($regionIDList[0], $groupIDList[1], $laneIDList[1], $laneTypeList[1], $executionIDList[0])) && p() && e('18'); // 测试创建执行161 区域101 泳道组102 泳道102 bug执行看板的泳道列
|
|
r($kanban->createRDColumnTest($regionIDList[0], $groupIDList[2], $laneIDList[2], $laneTypeList[2], $executionIDList[0])) && p() && e('14'); // 测试创建执行161 区域101 泳道组103 泳道103 task执行看板的泳道列
|
|
r($kanban->createRDColumnTest($regionIDList[1], $groupIDList[3], $laneIDList[3], $laneTypeList[0], $executionIDList[1])) && p() && e('22'); // 测试创建执行162 区域102 泳道组104 泳道104 story执行看板的泳道列
|
|
r($kanban->createRDColumnTest($regionIDList[1], $groupIDList[4], $laneIDList[4], $laneTypeList[1], $executionIDList[1])) && p() && e('18'); // 测试创建执行162 区域102 泳道组105 泳道105 bug执行看板的泳道列
|
|
r($kanban->createRDColumnTest($regionIDList[1], $groupIDList[5], $laneIDList[5], $laneTypeList[2], $executionIDList[1])) && p() && e('14'); // 测试创建执行162 区域102 泳道组106 泳道106 task执行看板的泳道列
|
|
system("./ztest init"); |