* Fix metric test bug.
This commit is contained in:
@@ -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返回
|
||||
|
||||
Reference in New Issue
Block a user