From 5c2a12f4d04a2b1a8903a38d244b3f4d49ed9781 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 2 Jun 2023 13:13:41 +0800 Subject: [PATCH] * Remove unit test of bugModel-batchChangeModule. --- module/bug/test/bug.class.php | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/module/bug/test/bug.class.php b/module/bug/test/bug.class.php index ba69528bfc..0398d7ccc4 100644 --- a/module/bug/test/bug.class.php +++ b/module/bug/test/bug.class.php @@ -1075,36 +1075,6 @@ class bugTest } } - /** - * Test batch change plan. - * - * @param array $bugIDList - * @param int $planID - * @param int $bugID - * @access public - * @return array - */ - public function batchChangePlanTest(array $bugIDList, int $planID, int $bugID) - { - $oldBugs = $this->objectModel->getByIdList($bugIDList); - - $object = $this->objectModel->batchChangePlan($bugIDList, $planID); - - if(dao::isError()) - { - return dao::getError(); - } - else - { - $newBugs = $this->objectModel->getByIdList($bugIDList); - if(!empty($newBugs[$bugID])) - { - $changes = common::createChanges($oldBugs[$bugID], $newBugs[$bugID]); - return $changes; - } - } - } - /** * Test activate a bug. *