* Refactor bugModel-getUserBugPairs, and modify its unit test.

This commit is contained in:
liumengyi
2023-06-02 16:45:37 +08:00
parent 202ea93076
commit 59fd03260a
3 changed files with 34 additions and 17 deletions
+8 -2
View File
@@ -589,15 +589,21 @@ class bugTest
}
/**
* 测试获取取用户的bugs的 id => title 数组。
* Test get bug pairs of a user.
*
* @param string $account
* @param bool $appendProduct
* @param int $limit
* @param array $skipProductIdList
* @param array $skipExecutionIdList
* @param int|array $appendBugID
* @access public
* @return array
*/
public function getUserBugPairsTest($account)
public function getUserBugPairsTest(string $account, bool $appendProduct = true, int $limit = 0, array $skipProductIdList = array(), array $skipExecutionIdList = array(), array|int $appendBugID = 0): array|int
{
$array = $this->objectModel->getUserBugPairs($account);
$array = $this->objectModel->getUserBugPairs($account, $appendProduct, $limit, $skipProductIdList, $skipExecutionIdList, $appendBugID);
if(dao::isError())
{