* Add test case.

This commit is contained in:
caoyanyi
2023-01-12 16:00:43 +08:00
parent 0763e7e54f
commit d294e71428
2 changed files with 84 additions and 2 deletions
+17 -2
View File
@@ -2651,7 +2651,22 @@ class executionTest
{
global $app;
$app->moduleName = 'task';
$trees = $this->objectModel->getTree($executionID);
return str_replace(' ', '', strip_tags($this->objectModel->printTree($trees, false)));
$tree = $this->objectModel->getTree($executionID);
return str_replace(' ', '', strip_tags($this->objectModel->printTree($tree, false)));
}
/**
* Test format tasks for tree.
*
* @param int $executionID
* @access public
* @return string
*/
public function formatTasksForTreeTest($executionID)
{
global $app;
$app->moduleName = 'task';
$tasks = $this->objectModel->getSearchTasks("execution = $executionID", null, 'id_desc');
return $this->objectModel->formatTasksForTree($tasks);
}
}