40 lines
1.6 KiB
PHP
40 lines
1.6 KiB
PHP
|
|
#!/usr/bin/env php
|
||
|
|
<?php
|
||
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||
|
|
zenData('user')->gen(5);
|
||
|
|
su('admin');
|
||
|
|
|
||
|
|
zenData('burn')->loadYaml('burn')->gen(15);
|
||
|
|
zenData('project')->loadYaml('execution')->gen(35);
|
||
|
|
|
||
|
|
/**
|
||
|
|
|
||
|
|
title=测试executionModel->getBurnByExecution();
|
||
|
|
timeout=0
|
||
|
|
cid=16388
|
||
|
|
|
||
|
|
- 获取迭代的燃尽图数据 @0
|
||
|
|
- 获取阶段的燃尽图数据 @0
|
||
|
|
- 获取看板的燃尽图数据 @0
|
||
|
|
- 获取迭代的燃尽图数据
|
||
|
|
- 属性execution @101
|
||
|
|
- 属性date @2023-07-11
|
||
|
|
- 获取阶段的燃尽图数据
|
||
|
|
- 属性execution @106
|
||
|
|
- 属性date @2023-07-16
|
||
|
|
- 获取看板的燃尽图数据 @0
|
||
|
|
|
||
|
|
*/
|
||
|
|
|
||
|
|
$today = helper::today();
|
||
|
|
|
||
|
|
$executionIdList = array(101, 106, 124);
|
||
|
|
|
||
|
|
global $tester;
|
||
|
|
$tester->loadModel('execution');
|
||
|
|
r($tester->execution->getBurnByExecution($executionIdList[0], $today)) && p() && e('0'); // 获取迭代的燃尽图数据
|
||
|
|
r($tester->execution->getBurnByExecution($executionIdList[1], $today)) && p() && e('0'); // 获取阶段的燃尽图数据
|
||
|
|
r($tester->execution->getBurnByExecution($executionIdList[2], $today)) && p() && e('0'); // 获取看板的燃尽图数据
|
||
|
|
r($tester->execution->getBurnByExecution($executionIdList[0], '2023-07-11')) && p('execution,date') && e('101,2023-07-11'); // 获取迭代的燃尽图数据
|
||
|
|
r($tester->execution->getBurnByExecution($executionIdList[1], '2023-07-16')) && p('execution,date') && e('106,2023-07-16'); // 获取阶段的燃尽图数据
|
||
|
|
r($tester->execution->getBurnByExecution($executionIdList[2], '2023-07-08')) && p() && e('0'); // 获取看板的燃尽图数据
|