Baue Links aus der aufgerufenen Adresse, solange die Anwendungsadresse der Platzhalter ist.
Deploy Test / test (push) Failing after 9s
Deploy Test / deploy (push) Skipped

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-15 09:11:26 +01:00
1 parent fef0ea2ac2
commit fe03b0804c
5 files changed
+50

No files matched your search

+21
View File
@@ -50,6 +50,27 @@ public function test_registration_creates_a_person_and_sends_verification(): voi
Notification::assertSentTo($user, VerifyEmail::class);
}
public function test_placeholder_app_url_uses_the_address_opened_in_the_browser(): void
{
Notification::fake();
config(['app.url' => 'https://CHANGE-ME.example']);
$response = $this->post('/registrieren', [
'name' => 'Probe Mitglied',
'email' => 'probe@example.test',
'password' => 'password-pass',
'password_confirmation' => 'password-pass',
'adult' => '1',
]);
$response->assertRedirect('http://localhost:8000/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/');
});
}
public function test_verified_member_can_log_in_and_reaches_the_dashboard(): void
{
$user = User::factory()->create([