修正单元测试

This commit is contained in:
thinkphp
2016-03-22 11:57:05 +08:00
parent 97a9bd11dd
commit 01e978dbbd
2 changed files with 4 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ class modelTest extends \PHPUnit_Framework_TestCase
];
$validate = [
['username', 'length:5,15|unique:user', '用户名长度为5到15个字符|用户名已经存在'],
['username', 'length:5,15', '用户名长度为5到15个字符'],
['nickname', 'require', '请填昵称'],
['password', '[\w-]{6,15}', '密码长度为6到15个字符'],
['repassword', 'confirm:password', '两次密码不一到致'],