feat: unify pickup selection
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user