mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-25 10:04:54 +08:00
Update LoginTest.php
This commit is contained in:
@@ -27,7 +27,6 @@ it('can render page with a custom slug', function () {
|
||||
});
|
||||
|
||||
it('can authenticate', function () {
|
||||
Filament::setCurrentPanel(Filament::getPanel('admin'));
|
||||
$this->assertGuest();
|
||||
|
||||
$userToAuthenticate = User::factory()->create();
|
||||
@@ -44,7 +43,6 @@ it('can authenticate', function () {
|
||||
});
|
||||
|
||||
it('can authenticate and redirect user to their intended URL', function () {
|
||||
Filament::setCurrentPanel(Filament::getPanel('admin'));
|
||||
session()->put('url.intended', $intendedUrl = Str::random());
|
||||
|
||||
$userToAuthenticate = User::factory()->create();
|
||||
@@ -93,8 +91,6 @@ it('cannot authenticate on unauthorized panel', function () {
|
||||
});
|
||||
|
||||
it('can throttle authentication attempts', function () {
|
||||
Filament::setCurrentPanel(Filament::getPanel('admin'));
|
||||
|
||||
$this->assertGuest();
|
||||
|
||||
$userToAuthenticate = User::factory()->create();
|
||||
|
||||
Reference in New Issue
Block a user