Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksleo committed Dec 22, 2017
1 parent 0320824 commit 7ec7447
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function createTestData()
email varchar(64) not null comment '邮箱',
password_hash varchar(64) not null comment '密码',
password_reset_token varchar(255) null comment '重置密码Token',
status tinyint(1) default '1' not null comment '状态',
status tinyint(1) default '10' not null comment '状态',
created_at int not null comment '创建时间',
updated_at int not null comment '更新时间'
)
Expand All @@ -67,7 +67,7 @@ public function createTestData()
)
VALUES
(
'CccLhn6aqp_Y-XYh-JzfXSCfxJNkKC8w', '', 'lianluo', '管理员', 'zacksleo@gmail.com', '$2y$13\$dbGxVyj3kglcJNUEsKyiu.5KQ9We3AqAFncYkdAS1iNRYf/RA37Ay', null, 1, 1502856859, 1502856859
'CccLhn6aqp_Y-XYh-JzfXSCfxJNkKC8w', '', 'lianluo', '管理员', 'zacksleo@gmail.com', '$2y$13\$dbGxVyj3kglcJNUEsKyiu.5KQ9We3AqAFncYkdAS1iNRYf/RA37Ay', null, 10, 1502856859, 1502856859
);
EOF;
$userSql = <<<EOF
Expand Down
2 changes: 1 addition & 1 deletion tests/models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class User extends \mdm\admin\models\User
{
const STATUS_ACTIVE = 1;
const STATUS_ACTIVE = 10;
const STATUS_INACTIVE = 0;

public function rules()
Expand Down

0 comments on commit 7ec7447

Please sign in to comment.