* Adjust task code

This commit is contained in:
zenggang
2023-05-08 08:58:00 +00:00
parent f4897267b0
commit b4f66fa5cc
9 changed files with 564 additions and 478 deletions
+32
View File
@@ -304,6 +304,38 @@ class taskTest
}
}
/**
* Test assign a task to a team again.
*
* @param int $taskID
* @param string $status
* @param array $team
* @param array $teamSource
* @param array $teamConsumed
* @param araay $teamLeft
* @access public
* @return object
*/
public function updateTeamTest($taskID, $status, $team, $teamSource, $teamEstimate, $teamConsumed, $teamLeft)
{
global $tester;
$task = new stdclass();
$task->id = $taskID;
$task->status = $status;
$task->lastEditedBy = $tester->app->user->account;
$object = $this->objectModel->updateTeam($task, $team, $teamSource, $teamEstimate, $teamConsumed, $teamLeft);
if(dao::isError())
{
$errors = dao::getError();
return array_shift($errors);
}
else
{
return $object;
}
}
/**
* Test cancel a task.
*