feat: delete

This commit is contained in:
hashbro
2026-09-03 01:29:50 +08:00
parent 44bcfe544c
commit 4c49a61149
5 changed files with 196 additions and 45 deletions
+6 -2
View File
@@ -59,7 +59,7 @@ class AdminAgentPortalTest extends TestCase
$this->post('/user/login', [
'username' => 'disabled',
'password' => 'secret12',
])->assertSessionHasErrors('username');
])->assertOk()->assertJson(['code' => 1, 'msg' => '账号已禁用']);
$this->assertGuest('agent');
}
@@ -76,7 +76,11 @@ class AdminAgentPortalTest extends TestCase
$this->post('/user/login', [
'username' => 'okagent',
'password' => 'secret12',
])->assertRedirect(route('user.home'));
])->assertOk()->assertJson([
'code' => 0,
'msg' => '登录成功',
'data' => route('user.home'),
]);
$this->assertAuthenticated('agent');
}