20-02-2026

This commit is contained in:
Kevin Adametz 2026-02-20 17:57:50 +01:00
parent 854ce02bf6
commit 4d6b4930b2
128 changed files with 18247 additions and 2093 deletions

View file

@ -3,14 +3,21 @@
use App\Models\User;
test('guests are redirected to the login page', function () {
$response = $this->get('/dashboard');
$portalUrl = 'https://'.config('domains.domain_portal');
$response = $this->get($portalUrl.'/dashboard');
$response->assertRedirect('/login');
});
test('authenticated users can visit the dashboard', function () {
$portalUrl = 'https://'.config('domains.domain_portal');
$user = User::factory()->create();
$this->actingAs($user);
$response = $this->get('/dashboard');
$response = $this->get($portalUrl.'/dashboard');
$response->assertStatus(200);
});