* Sprint231 unit

This commit is contained in:
zenggang
2022-08-26 09:38:31 +00:00
parent 72b130fb6c
commit 6c5c2a004f
7 changed files with 345 additions and 10 deletions
@@ -0,0 +1,26 @@
#!/usr/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/execution.class.php';
su('admin');
/**
title=测试executionModel->getKanbanGroupData();
cid=1
pid=1
空数据查询 >> empty
查询执行162需求 >> 软件需求246
*/
$execution = new executionTest();
$executionID = 162;
$stories = $tester->loadModel('story')->getExecutionStories($executionID);
$tasks = $execution->getKanbanTasksTest($executionID, false);
$bugs = $tester->loadModel('bug')->getExecutionBugs($executionID);
r($execution->getKanbanGroupDataTest(array(), array(), array(), 'story')) && p('') && e('empty'); //空数据查询
r($execution->getKanbanGroupDataTest($stories, $tasks, $bugs, 'story')) && p('246:title') && e('软件需求246'); // 查询执行162需求