* Add test case.

This commit is contained in:
caoyanyi
2023-01-13 14:34:23 +08:00
parent 5035c4a462
commit edbd7b50ea
4 changed files with 100 additions and 4 deletions
+21 -1
View File
@@ -11,7 +11,8 @@ class executionTest
{
global $tester;
$this->executionModel = $tester->loadModel('execution');
$this->treeModel = $tester->loadModel('tree');
$this->treeModel = $tester->loadModel('tree');
$this->productModel = $tester->loadModel('product');
}
/**
@@ -2700,4 +2701,23 @@ class executionTest
return $_SESSION['tasksearchParams']['queryID'];
}
/**
* Test build bug search form.
*
* @param int $productID
* @param int $queryID
* @access public
* @return void
*/
public function buildBugSearchFormTest($productID, $queryID)
{
$product = $this->productModel->getByID($productID);
if(empty($product)) return '0';
$this->executionModel->loadModel('bug');
$this->executionModel->buildBugSearchForm(array($productID => $product), $queryID, 'searchBug');
return $_SESSION['executionBugsearchParams']['queryID'];
}
}