* Add test case.

This commit is contained in:
caoyanyi
2023-01-29 14:11:42 +08:00
parent 152ec6b49c
commit cbadccc033
2 changed files with 80 additions and 0 deletions
+25
View File
@@ -1809,6 +1809,31 @@ class executionTest
}
}
/**
* Function getBurnData test by execution.
*
* @param int $executionID
* @access public
* @return int
*/
public function getBurnDataTest($executionID = 0)
{
$execution = $this->executionModel->getByID($executionID);
if(empty($execution)) return '0';
$object = $this->executionModel->getBurnData(array($executionID => $execution));
if(dao::isError())
{
$error = dao::getError();
return $error;
}
else
{
return $object;
}
}
/**
* function processBurnData test by execution
*