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

@ -6,9 +6,11 @@ use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\URL;
test('email verification screen can be rendered', function () {
$portalUrl = 'https://'.config('domains.domain_portal');
$user = User::factory()->unverified()->create();
$response = $this->actingAs($user)->get('/verify-email');
$response = $this->actingAs($user)->get($portalUrl.'/verify-email');
$response->assertStatus(200);
});
@ -29,7 +31,7 @@ test('email can be verified', function () {
Event::assertDispatched(Verified::class);
expect($user->fresh()->hasVerifiedEmail())->toBeTrue();
$response->assertRedirect(route('dashboard', absolute: false).'?verified=1');
$response->assertRedirect(route('partner.setup.wizard', absolute: false));
});
test('email is not verified with invalid hash', function () {