* Add test case.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user