feat: unify pickup selection

This commit is contained in:
Björn Fromme
2025-10-06 18:07:07 +02:00
parent b7b80296e9
commit b66d453881
19 changed files with 119 additions and 325 deletions
@@ -112,12 +112,12 @@ class ParticipantValidatorTest extends ConstraintValidatorTestCase
$busService = new Service();
$busService->subType = 'BUS';
$participant->transportationOutbound = $busService;
$participant->pickupOutbound = null;
$participant->pickup = null;
$this->validator->validate($participant, new Participant());
$this->buildViolation('Bitte auswählen')
->atPath('property.path.pickupOutbound')
->atPath('property.path.pickup')
->assertRaised();
}
@@ -128,7 +128,7 @@ class ParticipantValidatorTest extends ConstraintValidatorTestCase
$trainService = new Service();
$trainService->subType = 'TRAIN';
$participant->transportationOutbound = $trainService;
$participant->pickupOutbound = null; // Not required for non-bus
$participant->pickup = null; // Not required for non-bus
$this->validator->validate($participant, new Participant());