* Finish user auto test.

This commit is contained in:
sgm0422
2022-03-18 09:14:11 +08:00
parent ab5db10f05
commit 9e53d5bbf8
52 changed files with 256 additions and 80 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ su('admin');
/**
title=userModel->getList();
title=测试 userModel->getList();
cid=1
pid=1
@@ -22,4 +22,4 @@ a($user->getListTest());die;
r($user->getListTest()) && p('1:realname') && e('开发1'); //查找系统中第二个未删除的、内部用户真实姓名,根据account正序排
r($user->getListTest()) && p('998:realname') && e('测试99'); //查找系统中未删除的、根据account正序排的最后一个用户的姓名
r($user->getListTest(true)) && p() && e('999'); //查找系统中所有未删除的、内部用户的数量
r($user->getListTest()) && p('1000:realname') && e('Error: Cannot get index 1000'); //查找系统中不存在的用户,输出错误提示
r($user->getListTest()) && p('1000:realname') && e('Error: Cannot get index 1000'); //查找系统中不存在的用户,输出错误提示