* 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
+5 -1
View File
@@ -8,10 +8,14 @@ title=测试 gitlabModel::getGitLabListByAccount();
cid=1
pid=1
默认admin用户查询绑定的gitlab服务器 >> 0
使用已绑定一个gitlab服务器的用户查询 >> 1
使用未绑定gitlab服务器的用户查询 >> 0
*/
$gitlab = $tester->loadModel('gitlab');
r(count($gitlab->getGitLabListByAccount())) && p() && e('0'); //默认admin用户查询绑定的gitlab服务器
r(count($gitlab->getGitLabListByAccount('user3'))) && p() && e('1'); //使用已绑定一个gitlab服务器的用户查询
r(count($gitlab->getGitLabListByAccount('test1'))) && p() && e('0'); //使用未绑定gitlab服务器的用户查询
r(count($gitlab->getGitLabListByAccount('test1'))) && p() && e('0'); //使用未绑定gitlab服务器的用户查询