Update LoginTest.php

This commit is contained in:
Dan Harrin
2024-04-28 08:17:33 +01:00
parent 4f7e125fb5
commit bd87b2fc17
-4
View File
@@ -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();