* Add switchDB by tests.

This commit is contained in:
liyang
2022-08-09 14:11:38 +08:00
parent 40ba4c8a9e
commit 3bd5ccc13f
881 changed files with 3058 additions and 1826 deletions
+7 -1
View File
@@ -8,6 +8,12 @@ title=测试 gitlabModel::apiGetGroups();
cid=1
pid=1
使用空的数据查询群组 >> return null
使用正确的gitlabID查询群组 >> return true
使用错误的orderBy查询群组 >> return true
通过gitlabID,orderBy查询群组 >> return true
通过错误的minRole查询群组 >> return true
*/
$gitlab = $tester->loadModel('gitlab');
@@ -39,4 +45,4 @@ r($result) && p() && e('return true'); //通过gitlabID,orderBy查询群组
$minRole = 'abc';
$result = $gitlab->apiGetGroups($gitlabID, $orderBy, $minRole);
if(is_array($result)) $result = 'return true';
r($result) && p() && e('return true'); //通过错误的minRole查询群组
r($result) && p() && e('return true'); //通过错误的minRole查询群组