MVP 1.0 (ohne Shop) #1

Merged
Lars merged 149 commits from develop into main 2026-11-20 21:58:42 +01:00
Showing only changes of commit 2113378e81 - Show all commits
+5 -2
View File
@@ -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');
});
}