Merge branch 'sprint/tianshujie_case' into 'master'

* Add case of execution modules.

See merge request easycorp/zentaopms!5171
This commit is contained in:
孙广明
2022-08-29 02:53:24 +00:00
3 changed files with 67 additions and 0 deletions
+25
View File
@@ -748,6 +748,18 @@ class executionTest
}
}
/**
* Check the privilege.
*
* @access public
* @return string|bool
*/
public function getLimitedExecutionTest()
{
$this->objectModel->getProductGroupList();
return isset($_SESSION['limitedExecutions']) ? $_SESSION['limitedExecutions'] : true;
}
/**
* function getProductGroupList test execution
*
@@ -812,6 +824,19 @@ class executionTest
}
}
/**
* Get the task data group by execution id list.
*
* @param array $executionIdList
* @access public
* @return int
*/
public function getTaskGroupByExecutionTest($executionIdList = array())
{
$objects = $this->objectModel->getTaskGroupByExecution($executionIdList);
return count($objects);
}
/**
* function getDefaultManagers test by execution
*