* Add comment of bugModel::summary, and add its unit test.

This commit is contained in:
liumengyi
2023-08-17 11:00:19 +08:00
parent 4f168be393
commit 033569438a
3 changed files with 53 additions and 0 deletions
+16
View File
@@ -1359,4 +1359,20 @@ class bugTest
return $idList;
}
}
/**
* 测试获取 bugs 统计信息。
* Test get the statistics of the bugs.
*
* @param string $bugIdList
* @access public
* @return string
*/
public function summaryTest(string $bugIdList): string
{
$bugs = $this->objectModel->getByIdList($bugIdList);
if(empty($bugs)) $bugs = array();
$summary = $this->objectModel->summary($bugs);
return $summary;
}
}