From 3fb95cab92d4198f2f7efa6b6a622ab85fcedc27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 8 Jun 2026 15:17:15 +0200 Subject: [PATCH] fix: prefill correct value for country in dummy data --- src/Service/ParticipantDataPrefiller.php | 2 +- tests/Service/ParticipantDataPrefillerTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Service/ParticipantDataPrefiller.php b/src/Service/ParticipantDataPrefiller.php index c6a45cf..962c23a 100644 --- a/src/Service/ParticipantDataPrefiller.php +++ b/src/Service/ParticipantDataPrefiller.php @@ -142,7 +142,7 @@ class ParticipantDataPrefiller $address->street = 'Musterstr. 123'; $address->postCode = '99999'; $address->city = 'MusterOrt'; - $address->country = 'Deutschland'; + $address->country = 'DE'; $participant->address = $address; } } diff --git a/tests/Service/ParticipantDataPrefillerTest.php b/tests/Service/ParticipantDataPrefillerTest.php index 6bd2c04..717b601 100644 --- a/tests/Service/ParticipantDataPrefillerTest.php +++ b/tests/Service/ParticipantDataPrefillerTest.php @@ -276,6 +276,7 @@ class ParticipantDataPrefillerTest extends TestCase $this->assertSame('teilnehmer.in1@example.com', $participant->email); $this->assertSame('2006-01-15', $participant->dateOfBirth?->format('Y-m-d')); $this->assertSame('Musterstr. 123', $participant->address?->street); + $this->assertSame('DE', $participant->address?->country); CarbonImmutable::setTestNow(); }