* Sprint231 unit

This commit is contained in:
zenggang
2022-08-29 09:10:57 +00:00
parent 0c70cc0109
commit a138535d52
4 changed files with 37 additions and 15 deletions
+4 -3
View File
@@ -1393,13 +1393,14 @@ class bugTest
/**
* Test get bug pairs of a product.
*
* @param int $productID
* @param int $productID
* @param int|string $branch
* @access public
* @return string
*/
public function getProductBugPairsTest($productID)
public function getProductBugPairsTest($productID, $branch = '')
{
$array = $this->objectModel->getProductBugPairs($productID);
$array = $this->objectModel->getProductBugPairs($productID, $branch);
$title = '';
foreach($array as $bug) $title .= ',' . $bug;
+7 -2
View File
@@ -450,12 +450,17 @@ class taskTest
* Test get tasks of a execution.
*
* @param int $executionID
* @param int $productID
* @param string $type
* @param string $modules
* @param string $orderBy
* @param string $count
* @access public
* @return array
*/
public function getExecutionTasksTest($executionID,$count)
public function getExecutionTasksTest($executionID, $productID = 0, $type = 'all', $modules = 0, $orderBy = 'status_asc, id_desc', $count = '0')
{
$object = $this->objectModel->getExecutionTasks($executionID);
$object = $this->objectModel->getExecutionTasks($executionID, $productID, $type, $modules, $orderBy);
if(dao::isError())
{
$error = dao::getError();