* Fix metric test bug.

This commit is contained in:
songchenxuan
2023-12-18 14:01:57 +08:00
parent a162ec8572
commit f0f66cdf26
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ class metricTest
*/
public function getList($scope, $stage = 'all', $sort = 'id_desc')
{
return $this->objectModel->getList($scope, $stage, $param, '', 0, $sort);
return $this->objectModel->getList($scope, $stage, 0, '', 0, $sort);
}
/**
@@ -13,6 +13,6 @@ pid=1
*/
r($metric->getMetricsByIDList('1,2')) && p('1:code') && e('count_of_doing_program'); // 使用字符串传入获取metric
r($metric->getMetricsByIDList(array(1,2))) && p('0:code') && e('count_of_program'); // 使用数组传入获取metric
r($metric->getMetricsByIDList('')) && p() && e('0'); // 传入一个空字符串没有metric返回
r($metric->getMetricsByIDList('1,2')) && p('0:code;1:code') && e('count_of_program,count_of_doing_program'); // 使用字符串传入获取metric
r($metric->getMetricsByIDList(array(1,2))) && p('0:code;1:code') && e('count_of_program,count_of_doing_program'); // 使用数组传入获取metric
r($metric->getMetricsByIDList('')) && p() && e('0'); // 传入一个空字符串没有metric返回