diff --git a/module/doc/test/doc.class.php b/module/doc/test/doc.class.php index 4ebcaf3a02..72c5d6f3e2 100644 --- a/module/doc/test/doc.class.php +++ b/module/doc/test/doc.class.php @@ -1167,4 +1167,17 @@ class docTest { return $this->objectModel->getOrderedProjects($append); } + + /** + * 获取已排序的执行数据。 + * Get ordered executions. + * + * @param int $append + * @access public + * @return array + */ + public function getOrderedExecutionsTest(int $append): array + { + return $this->objectModel->getOrderedExecutions($append); + } } diff --git a/module/doc/test/tao/getorderedexecutions.php b/module/doc/test/tao/getorderedexecutions.php new file mode 100644 index 0000000000..d4b60eee25 --- /dev/null +++ b/module/doc/test/tao/getorderedexecutions.php @@ -0,0 +1,22 @@ +#!/usr/bin/env php +getOrderedExecutions(); +timeout=0 +cid=1 + +*/ + +include dirname(__FILE__, 5) . '/test/lib/init.php'; +include dirname(__FILE__, 2) . '/doc.class.php'; + +zdTable('project')->config('execution')->gen(20); +zdTable('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已排序的执行