* Adjust user unit test `` to ~~.

This commit is contained in:
wangyuting
2023-12-26 14:20:59 +08:00
parent da4ca4faf5
commit bdae4f0c36
22 changed files with 140 additions and 134 deletions
@@ -42,27 +42,27 @@ $result = $userTest->checkBeforeBatchUpdateTest($users1, '');
r($result) && p('result') && e(0); // 检查未通过,返回 false。
r($result) && p('errors:realname[0]') && e('『姓名』不能为空。'); // 姓名为空错误提示。
r($result) && p('errors:visions[0][]') && e('『界面类型』不能为空。'); // 界面类型为空错误提示。
r($result) && p('errors:email[0]') && e('``'); // 邮箱无错误提示。
r($result) && p('errors:phone[0]') && e('``'); // 电话无错误提示。
r($result) && p('errors:mobile[0]') && e('``'); // 手机无错误提示。
r($result) && p('errors:email[0]') && e('~~'); // 邮箱无错误提示。
r($result) && p('errors:phone[0]') && e('~~'); // 电话无错误提示。
r($result) && p('errors:mobile[0]') && e('~~'); // 手机无错误提示。
r($result) && p('errors:verifyPassword') && e('验证失败,请检查您的系统登录密码是否正确'); // 验证密码错误提示。
/* 联系方式不符合格式的用户。*/
$result = $userTest->checkBeforeBatchUpdateTest($users2, $verifyPassword);
r($result) && p('result') && e(0); // 检查未通过,返回 false。
r($result) && p('errors:realname[0]') && e('``'); // 姓名无错误提示。
r($result) && p('errors:visions[0][]') && e('``'); // 界面类型无错误提示。
r($result) && p('errors:realname[0]') && e('~~'); // 姓名无错误提示。
r($result) && p('errors:visions[0][]') && e('~~'); // 界面类型无错误提示。
r($result) && p('errors:email[0]') && e('『邮箱』应当为合法的EMAIL。'); // 邮箱格式错误提示。
r($result) && p('errors:phone[0]') && e('『电话』应当为合法的电话号码。'); // 电话格式错误提示。
r($result) && p('errors:mobile[0]') && e('『手机』应当为合法的手机号码。'); // 手机格式错误提示。
r($result) && p('errors:verifyPassword') && e('``'); // 验证密码无错误提示。
r($result) && p('errors:verifyPassword') && e('~~'); // 验证密码无错误提示。
/* 符合所有检查项的用户。*/
$result = $userTest->checkBeforeBatchUpdateTest($users3, $verifyPassword);
r($result) && p('result') && e(1); // 检查通过,返回 true。
r($result) && p('errors:realname[0]') && e('``'); // 姓名无错误提示。
r($result) && p('errors:visions[0][]') && e('``'); // 界面类型无错误提示。
r($result) && p('errors:email[0]') && e('``'); // 邮箱无错误提示。
r($result) && p('errors:phone[0]') && e('``'); // 电话无错误提示。
r($result) && p('errors:mobile[0]') && e('``'); // 手机无错误提示。
r($result) && p('errors:verifyPassword') && e('``'); // 验证密码无错误提示。
r($result) && p('errors:realname[0]') && e('~~'); // 姓名无错误提示。
r($result) && p('errors:visions[0][]') && e('~~'); // 界面类型无错误提示。
r($result) && p('errors:email[0]') && e('~~'); // 邮箱无错误提示。
r($result) && p('errors:phone[0]') && e('~~'); // 电话无错误提示。
r($result) && p('errors:mobile[0]') && e('~~'); // 手机无错误提示。
r($result) && p('errors:verifyPassword') && e('~~'); // 验证密码无错误提示。