Files
EasySoft-ZenTaoPMS/module/gitlab/test/model/getlistbyaccount.php
T
2023-12-14 09:29:55 +00:00

23 lines
721 B
PHP
Executable File

#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
/**
title=测试 gitlabModel::getListByAccount();
timeout=0
cid=1
- 默认admin用户查询绑定的gitlab服务器 @0
- 使用已绑定一个gitlab服务器的用户查询 @1
- 使用未绑定gitlab服务器的用户查询 @0
*/
zdTable('oauth')->gen(5);
$gitlab = $tester->loadModel('gitlab');
r(count($gitlab->getListByAccount())) && p() && e('0'); //默认admin用户查询绑定的gitlab服务器
r(count($gitlab->getListByAccount('user3'))) && p() && e('1'); //使用已绑定一个gitlab服务器的用户查询
r(count($gitlab->getListByAccount('test1'))) && p() && e('0'); //使用未绑定gitlab服务器的用户查询