feat: unify pickup selection
This commit is contained in:
@@ -262,7 +262,7 @@ class BookingDataProcessorTest extends TestCase
|
||||
$busService = $this->createMockService(1);
|
||||
$busService->subType = 'BUS';
|
||||
$participant->transportationOutbound = $busService;
|
||||
$participant->pickupOutbound = $this->createMockPickup(1);
|
||||
$participant->pickup = $this->createMockPickup(1);
|
||||
|
||||
return $formData;
|
||||
}
|
||||
@@ -456,7 +456,7 @@ class BookingDataProcessorTest extends TestCase
|
||||
$participant->rentals = [];
|
||||
$participant->transportationOutbound = $this->createMockService(1);
|
||||
$participant->transportationInbound = $this->createMockService(2);
|
||||
$participant->pickupOutbound = null;
|
||||
$participant->pickup = null;
|
||||
|
||||
return $participant;
|
||||
}
|
||||
|
||||
@@ -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