* Add user test unit.
This commit is contained in:
Regular → Executable
+4
-8
@@ -10,14 +10,10 @@ title=userModel->resetPasswordTest();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
密码较弱的情况 >> 您的密码强度小于系统设定。
|
||||
Visions为空的情况 >> 『版本类型』不能为空。
|
||||
用户名为空的情况 >> 『用户名』不能为空。
|
||||
用户名特殊的情况 >> 『用户名』只能是字母、数字或下划线的组合三位以上。
|
||||
重设用户密码,返回重设后的加密后的密码 >> 367ef140036b0feb2f90d70d33255eea
|
||||
两次密码不相同的情况 >> 两次密码应该相同。
|
||||
插入重复的用户名,返回报错信息 >> 『用户名』已经有『admin』这条记录了。如果您确定该记录已删除,请到后台-系统-数据-回收站还原。
|
||||
正常插入用户,返回新插入的ID、真实姓名 >> 1001,新的测试用户
|
||||
正常插入用户,返回新插入的真实姓名 >> 新的测试用户
|
||||
密码强度小于系统设定 >> 您的密码强度小于系统设定。
|
||||
使用常见简单密码,给出错误提示 >> 密码不能使用【123456,password,12345,12345678,qwerty,123456789,1234,1234567,abc123,111111,123123】这些常用弱口令。
|
||||
|
||||
*/
|
||||
|
||||
@@ -42,4 +38,4 @@ r($user->resetPasswordTest($normalUser)) && p('password') && e('367ef
|
||||
r($user->resetPasswordTest($differentPassword)) && p('password:0') && e('两次密码应该相同。'); //两次密码不相同的情况
|
||||
r($user->resetPasswordTest($weakPassword)) && p('password1:0') && e('您的密码强度小于系统设定。'); //密码强度小于系统设定
|
||||
r($user->resetPasswordTest($simplePassword)) && p('password1:0') && e('密码不能使用【123456,password,12345,12345678,qwerty,123456789,1234,1234567,abc123,111111,123123】这些常用弱口令。'); //使用常见简单密码,给出错误提示
|
||||
system("./ztest init");
|
||||
system("./ztest init");
|
||||
Reference in New Issue
Block a user