execution test case
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/execution.class.php';
|
||||
$db->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();
|
||||
Reference in New Issue
Block a user