Skip to content

Commit 3cd63fd

Browse files
committed
fix: (LAR-86) update test file
1 parent 8c31f0f commit 3cd63fd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/Feature/Filament/UserResourceTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
});
2828

2929
it('only admin can ban a user and send a ban notification', function () {
30-
$this->get('/cp')->assertSuccessful();
30+
// $this->get('/cp')->assertSuccessful();
3131

3232
$user = User::factory()->create();
3333

@@ -42,7 +42,7 @@
4242
});
4343

4444
it('can unban a user and send a unban notification', function () {
45-
$this->get('/cp')->assertSuccessful();
45+
// $this->get('/cp')->assertSuccessful();
4646

4747
$user = User::factory()->create([
4848
'banned_at' => now(),
@@ -60,7 +60,7 @@
6060
});
6161

6262
it('does not ban an already banned user', function () {
63-
$this->get('/cp')->assertSuccessful();
63+
// $this->get('/cp')->assertSuccessful();
6464

6565
$user = User::factory()->create(['banned_at' => now()]);
6666

@@ -79,5 +79,7 @@
7979
->get('/dashboard')
8080
->assertRedirect(route('login'))
8181
->assertSessionHasErrors(['email']);
82+
83+
$this->assertGuest();
8284
});
8385
})->group('users');

0 commit comments

Comments
 (0)