File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 27
27
});
28
28
29
29
it ('only admin can ban a user and send a ban notification ' , function () {
30
- $ this ->get ('/cp ' )->assertSuccessful ();
30
+ // $this->get('/cp')->assertSuccessful();
31
31
32
32
$ user = User::factory ()->create ();
33
33
42
42
});
43
43
44
44
it ('can unban a user and send a unban notification ' , function () {
45
- $ this ->get ('/cp ' )->assertSuccessful ();
45
+ // $this->get('/cp')->assertSuccessful();
46
46
47
47
$ user = User::factory ()->create ([
48
48
'banned_at ' => now (),
60
60
});
61
61
62
62
it ('does not ban an already banned user ' , function () {
63
- $ this ->get ('/cp ' )->assertSuccessful ();
63
+ // $this->get('/cp')->assertSuccessful();
64
64
65
65
$ user = User::factory ()->create (['banned_at ' => now ()]);
66
66
79
79
->get ('/dashboard ' )
80
80
->assertRedirect (route ('login ' ))
81
81
->assertSessionHasErrors (['email ' ]);
82
+
83
+ $ this ->assertGuest ();
82
84
});
83
85
})->group ('users ' );
You can’t perform that action at this time.
0 commit comments