31 lines
1.3 KiB
PHP
Executable file
31 lines
1.3 KiB
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
|
|
|
zenData('project')->loadYaml('project')->gen(10);
|
|
zenData('kanbanlane')->loadYaml('kanbanlane')->gen(10);
|
|
|
|
/**
|
|
|
|
title=测试 executionModel->getLaneMaxEditedTime();
|
|
timeout=0
|
|
cid=16325
|
|
|
|
- 获取迭代看板的最后更新时间 @2022-01-07 00:00:00
|
|
- 获取迭代看板的最后更新时间 @2022-01-08 00:00:00
|
|
- 获取迭代看板的最后更新时间 @2022-01-09 00:00:00
|
|
- 获取迭代看板的最后更新时间 @0
|
|
- 获取迭代看板的最后更新时间 @0
|
|
|
|
*/
|
|
|
|
$executionIdList = array(2, 3, 4, 5, 6);
|
|
|
|
global $tester;
|
|
$executionModel = $tester->loadModel('execution');
|
|
r($tester->execution->getLaneMaxEditedTime($executionIdList[0])) && p() && e('2022-01-07 00:00:00'); // 获取迭代看板的最后更新时间
|
|
r($tester->execution->getLaneMaxEditedTime($executionIdList[1])) && p() && e('2022-01-08 00:00:00'); // 获取迭代看板的最后更新时间
|
|
r($tester->execution->getLaneMaxEditedTime($executionIdList[2])) && p() && e('2022-01-09 00:00:00'); // 获取迭代看板的最后更新时间
|
|
r($tester->execution->getLaneMaxEditedTime($executionIdList[3])) && p() && e('0'); // 获取迭代看板的最后更新时间
|
|
r($tester->execution->getLaneMaxEditedTime($executionIdList[4])) && p() && e('0'); // 获取迭代看板的最后更新时间
|