* Fix failed test cases for execution module.

This commit is contained in:
tianshujie
2022-08-24 14:54:15 +08:00
parent f097c7b756
commit e30d4256f8
12 changed files with 60 additions and 62 deletions
+6 -7
View File
@@ -1611,26 +1611,25 @@ class executionTest
* @access public
* @return array
*/
public function getBurnDataFlotTest($executionID = 0, $count)
public function getBurnDataFlotTest($executionID = 0)
{
$date = date("Y-m-d");
$object = $this->objectModel->getBurnDataFlot($executionID, $burnBy = 'left');
$todayData = array();
foreach ($object[$date] as $key => $value) $todayData[$key] = $value;
if(isset($object[$date]))
{
foreach($object[$date] as $key => $value) $todayData[$key] = $value;
}
if(dao::isError())
{
$error = dao::getError();
return $error;
}
elseif($count == "1")
{
return sizeof($todayData);
}
else
{
return $object;
return sizeof($todayData);
}
}