From ab579391908a69624e0a2e765f5375fe4da8ee4e Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 2 Jun 2023 13:11:10 +0800 Subject: [PATCH] * Remove unit test of bugModel-batchResolve. --- module/bug/test/bug.class.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/module/bug/test/bug.class.php b/module/bug/test/bug.class.php index 26f1c2809c..fdf4560063 100644 --- a/module/bug/test/bug.class.php +++ b/module/bug/test/bug.class.php @@ -1128,31 +1128,6 @@ class bugTest return $changes; } - /** - * Test batch resolve bugs. - * - * @param array $bugIDList - * @param string $resolution - * @param int $bugID - * @access public - * @return array - */ - public function batchResolveTest($bugIDList, $resolution, $bugID) - { - $oldBugs = $this->objectModel->getByIdList($bugIDList); - - $object = $this->objectModel->batchResolve($bugIDList, $resolution, 'trunk', $oldBugs, array(), 'user3'); - - if(dao::isError()) - { - return dao::getError(); - } - else - { - return !empty($object[$bugID]) ? $object[$bugID] : 0; - } - } - /** * Test activate a bug. *