This commit is contained in:
ct
2025-07-01 23:13:09 +08:00
parent 79e7d7a49e
commit 209c022f1d
26 changed files with 374 additions and 50 deletions

View File

@@ -19,7 +19,7 @@
]);
$this->assertAuthenticated();
$response->assertRedirect(route('dashboard', absolute: false));
$response->assertRedirect(route(config('platform.general.authed_route_redirect'), absolute: false));
});
test('users can not authenticate with invalid password', function () {

View File

@@ -30,7 +30,7 @@
Event::assertDispatched(Verified::class);
expect($user->fresh()->hasVerifiedEmail())->toBeTrue();
$response->assertRedirect(route('dashboard', absolute: false).'?verified=1');
$response->assertRedirect(route(config('platform.general.authed_route_redirect'), absolute: false) . '?verified=1');
});
test('email is not verified with invalid hash', function () {

View File

@@ -17,5 +17,5 @@
]);
$this->assertAuthenticated();
$response->assertRedirect(route('dashboard', absolute: false));
$response->assertRedirect(route(config('platform.general.authed_route_redirect'), absolute: false));
});