* Add test case.

This commit is contained in:
caoyanyi
2023-01-12 11:04:28 +08:00
parent a5067b43ef
commit 2e47e59d78
2 changed files with 70 additions and 1 deletions
+38 -1
View File
@@ -18,7 +18,7 @@ class executionTest
*
* @param string $executionID
* @param string $type
* @param int $percent
* @param int $percent
* @access public
* @return object
*/
@@ -2532,4 +2532,41 @@ class executionTest
{
return $this->objectModel->syncNoMultipleSprint($projectID);
}
/**
* Test build search from.
*
* @param int $queryID
* @access public
* @return void
*/
public function buildSearchFromTest($queryID)
{
$this->objectModel->buildSearchFrom($queryID, 'searchUrl');
return $_SESSION['executionsearchParams']['queryID'];
}
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->objectModel->getByID($executionID);
ob_start();
$this->objectModel->printCell($col, $execution, array());
$objects = ob_get_clean();
if(dao::isError()) return dao::getError();
return strip_tags($objects);
}
}