feat: unify pickup selection

This commit is contained in:
Björn Fromme
2026-03-16 11:59:10 +01:00
parent 0f4b16c194
commit e330626b03
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());