From 2113378e813f18296914a19ae06aba3b820732bc Mon Sep 17 00:00:00 2001 From: Lars Date: Sun, 15 Nov 2026 09:15:54 +0100 Subject: [PATCH] =?UTF-8?q?Pr=C3=BCfe=20die=20Best=C3=A4tigungslinks=20geg?= =?UTF-8?q?en=20die=20tats=C3=A4chlich=20aufgerufene=20Adresse.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- tests/Feature/RegistrationTest.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/Feature/RegistrationTest.php b/tests/Feature/RegistrationTest.php index e49c0d5..d37199f 100644 --- a/tests/Feature/RegistrationTest.php +++ b/tests/Feature/RegistrationTest.php @@ -63,11 +63,14 @@ public function test_placeholder_app_url_uses_the_address_opened_in_the_browser( 'adult' => '1', ]); - $response->assertRedirect('http://localhost:8000/email/bestaetigen'); + $response->assertRedirect(url('/email/bestaetigen')); $user = User::query()->where('email', 'probe@example.test')->firstOrFail(); Notification::assertSentTo($user, VerifyEmail::class, function (VerifyEmail $notification) use ($user): bool { - return str_contains($notification->toMail($user)->actionUrl, 'http://localhost:8000/email/bestaetigen/'); + $link = $notification->toMail($user)->actionUrl; + + return str_starts_with($link, url('/email/bestaetigen/')) + && ! str_contains($link, 'CHANGE-ME.example'); }); }