* Add test case.

This commit is contained in:
caoyanyi
2023-01-13 13:32:54 +08:00
parent c1fa0b85fe
commit b786e4a428
2 changed files with 84 additions and 0 deletions
+16
View File
@@ -11,6 +11,7 @@ class executionTest
{
global $tester;
$this->objectModel = $tester->loadModel('execution');
$this->treeModel = $tester->loadModel('tree');
}
/**
@@ -2669,4 +2670,19 @@ class executionTest
$tasks = $this->objectModel->getSearchTasks("execution = $executionID", null, 'id_desc');
return $this->objectModel->formatTasksForTree($tasks);
}
/**
* Test fill tasks in tree.
*
* @param int $executionID
* @access public
* @return object
*/
public function fillTasksInTreeTest($executionID)
{
$fullTrees = $this->treeModel->getTaskStructure($executionID, 0);
if(empty($fullTrees)) return '0';
return $this->objectModel->fillTasksInTree((object)$fullTrees[0], $executionID);
}
}