fix: prefill correct value for country in dummy data
This commit is contained in:
@@ -142,7 +142,7 @@ class ParticipantDataPrefiller
|
|||||||
$address->street = 'Musterstr. 123';
|
$address->street = 'Musterstr. 123';
|
||||||
$address->postCode = '99999';
|
$address->postCode = '99999';
|
||||||
$address->city = 'MusterOrt';
|
$address->city = 'MusterOrt';
|
||||||
$address->country = 'Deutschland';
|
$address->country = 'DE';
|
||||||
$participant->address = $address;
|
$participant->address = $address;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -276,6 +276,7 @@ class ParticipantDataPrefillerTest extends TestCase
|
|||||||
$this->assertSame('[email protected]', $participant->email);
|
$this->assertSame('[email protected]', $participant->email);
|
||||||
$this->assertSame('2006-01-15', $participant->dateOfBirth?->format('Y-m-d'));
|
$this->assertSame('2006-01-15', $participant->dateOfBirth?->format('Y-m-d'));
|
||||||
$this->assertSame('Musterstr. 123', $participant->address?->street);
|
$this->assertSame('Musterstr. 123', $participant->address?->street);
|
||||||
|
$this->assertSame('DE', $participant->address?->country);
|
||||||
|
|
||||||
CarbonImmutable::setTestNow();
|
CarbonImmutable::setTestNow();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user