30 lines
1.1 KiB
PHP
Executable File
30 lines
1.1 KiB
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
/**
|
|
|
|
title=测试 docModel->getOrderedExecutions();
|
|
cid=1
|
|
|
|
- 获取系统中已排序的执行第0条的102属性 @敏捷项目1 / 迭代6
|
|
- 获取系统中包括ID=101已排序的执行第0条的102属性 @敏捷项目1 / 迭代6
|
|
- 获取系统中已排序的执行数量 @3
|
|
- 获取系统中包括ID=101已排序的执行数量 @3
|
|
|
|
*/
|
|
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
|
include dirname(__FILE__, 2) . '/lib/doc.unittest.class.php';
|
|
|
|
zenData('project')->loadYaml('execution')->gen(20);
|
|
zenData('user')->gen(5);
|
|
su('admin');
|
|
|
|
$appends = array(0, 101);
|
|
|
|
$docTester = new docTest();
|
|
r($docTester->getOrderedExecutionsTest($appends[0])) && p('0:102') && e('敏捷项目1 / 迭代6'); // 获取系统中已排序的执行
|
|
r($docTester->getOrderedExecutionsTest($appends[1])) && p('0:102') && e('敏捷项目1 / 迭代6'); // 获取系统中包括ID=101已排序的执行
|
|
|
|
r(count($docTester->getOrderedExecutionsTest($appends[0]))) && p() && e('3'); // 获取系统中已排序的执行数量
|
|
r(count($docTester->getOrderedExecutionsTest($appends[1]))) && p() && e('3'); // 获取系统中包括ID=101已排序的执行数量
|