diff --git a/module/bug/test/bug.class.php b/module/bug/test/bug.class.php index 608e439b53..81e1968d8a 100644 --- a/module/bug/test/bug.class.php +++ b/module/bug/test/bug.class.php @@ -461,38 +461,6 @@ class bugTest } } - /** - * Test get postponed bugs. - * - * @param string $productIDList - * @access public - * @return string - */ - public function getByPostponedbugsTest($productIDList) - { - global $tester; - $executions = $tester->loadModel('execution')->getPairs('0', 'all', 'empty|withdelete'); - - $bugs = $this->objectModel->getByPostponedbugs($productIDList, 'all', '0', $executions, 'id_desc', null, 0); - - $title = ''; - foreach($bugs as $bug) - { - $title .= ',' . $bug->title; - } - $title = trim($title, ','); - $title = str_replace("'", '', $title); - - if(dao::isError()) - { - return dao::getError(); - } - else - { - return $title; - } - } - /** * Test get by Sonarqube id. * diff --git a/module/bug/test/model/getbypostponedbugs.php b/module/bug/test/model/getbypostponedbugs.php deleted file mode 100755 index c3220768dc..0000000000 --- a/module/bug/test/model/getbypostponedbugs.php +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env php -getByPostponedbugs(); -cid=1 -pid=1 - -查询产品25 32 48 100001下被延期的bug >> BUG94,BUG75,BUG74,BUG73 -查询产品25下被延期的bug >> BUG75,BUG74,BUG73 -查询产品32下被延期的bug >> BUG94 -查询产品1下被延期的bug >> 0 -查询不存在的产品10001下被延期的bug >> 0 - -*/ - -$productIDList = array('25,32,48,1000001', '25' , '32', '1', '1000001'); - -$bug=new bugTest(); - -r($bug->getByPostponedBugsTest($productIDList[0])) && p('title') && e('BUG94,BUG75,BUG74,BUG73'); // 查询产品25 32 48 100001下被延期的bug -r($bug->getByPostponedBugsTest($productIDList[1])) && p('title') && e('BUG75,BUG74,BUG73'); // 查询产品25下被延期的bug -r($bug->getByPostponedBugsTest($productIDList[2])) && p('title') && e('BUG94'); // 查询产品32下被延期的bug -r($bug->getByPostponedBugsTest($productIDList[3])) && p('title') && e('0'); // 查询产品1下被延期的bug -r($bug->getByPostponedBugsTest($productIDList[4])) && p('title') && e('0'); // 查询不存在的产品10001下被延期的bug \ No newline at end of file