* Adjust printTree method unit test.

This commit is contained in:
caoyanyi
2023-09-11 13:26:59 +08:00
parent 0a1b48f564
commit 4ca6501772
3 changed files with 53 additions and 72 deletions
+1 -31
View File
@@ -2621,36 +2621,6 @@ class executionTest
return $_SESSION['executionsearchParams']['queryID'];
}
/**
* Test print cell.
*
* @param int $executionID
* @access public
* @return void
*/
public function printCellTest($executionID)
{
$col = new stdClass();
$col->order = 1;
$col->id = 'id';
$col->show = 1;
$col->width = 70;
$col->fixed = 'left';
$col->title = 'ID';
$col->sort = 'yes';
$col->name = '';
$execution = $this->executionModel->getByID($executionID);
ob_start();
$this->executionModel->printCell($col, $execution, array());
$objects = ob_get_clean();
if(dao::isError()) return dao::getError();
return strip_tags($objects);
}
/**
* Test build operate menu.
*
@@ -2678,7 +2648,7 @@ class executionTest
global $app;
$app->moduleName = 'task';
$tree = $this->executionModel->getTree($executionID);
return str_replace(' ', '', strip_tags($this->executionModel->printTree($tree, false)));
return $this->executionModel->printTree($tree);
}
/**