+ Add programplan-computerprogress test case.

This commit is contained in:
liuchenglong
2023-05-09 09:57:32 +00:00
parent 00b9ce900b
commit cbebcff10d
4 changed files with 96 additions and 0 deletions
@@ -489,4 +489,21 @@ class programplanTest
{
return $this->objectModel->printCell($col, $plan, $users, $projectID);
}
/**
* 通过计算获取阶段状态。
* Compute stage status.
*
* @param int $stage
* @param string $action
* @param bool $isParent
* @access public
* @return string
*/
public function computeProgressTest(int $stageID, string $action = '', bool $isParent = false): string
{
$result = $this->objectModel->computeProgress($stageID, $action, $isParent);
if(!$result) return 'fail';
return 'success';
}
}