This commit is contained in:
Pig Fang 2023-01-17 10:08:04 +08:00
parent 7eff0cb66d
commit 5750c1ae94
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2

View File

@ -14,4 +14,12 @@ class RejectBannedUserTest extends TestCase
->assertForbidden()
->assertJson(['code' => -1, 'message' => trans('auth.check.banned')]);
}
public function testLogout()
{
$user = User::factory()->banned()->create();
$this->actingAs($user)
->post(route('auth.logout'), ['accept' => 'application/json'])
->assertSuccessful();
}
}