diff --git a/test/class/execution.class.php b/test/class/execution.class.php index 7e7284d0e2..c2efc8c0ea 100644 --- a/test/class/execution.class.php +++ b/test/class/execution.class.php @@ -2382,4 +2382,20 @@ class executionTest return $tester->app->user->view->sprints; } } + + /** + * Create default sprint. + * + * @param int $projectID + * @access public + * @return int + */ + public function createDefaultSprintTest($projectID) + { + $result = $this->objectModel->createDefaultSprint($projectID); + + if(dao::isError()) return dao::getError(); + + return $result; + } } diff --git a/test/model/execution/createdefaultsprint.php b/test/model/execution/createdefaultsprint.php new file mode 100644 index 0000000000..8e8c3a3fb5 --- /dev/null +++ b/test/model/execution/createdefaultsprint.php @@ -0,0 +1,24 @@ +#!/usr/bin/env php +switchDB(); +su('admin'); + +/** + +title=测试executionModel->createDefaultSprintTest(); +cid=1 +pid=1 + +创建默认迭代并返回ID >> 751 + +*/ + +$test = new executionTest(); + +$result = $test->createDefaultSprintTest(11); + +r($result) && p('') && e('751'); // 创建默认迭代并返回ID + +$db->restoreDB(); \ No newline at end of file