chore: streamline property naming
This commit is contained in:
@@ -248,8 +248,8 @@ class BookingDataProcessorTest extends TestCase
|
||||
$formData = $this->createCompleteFormData();
|
||||
|
||||
$participant = $formData->participants[0];
|
||||
$participant->transportationServiceTo = $this->createMockService(1);
|
||||
$participant->transportationServiceFro = $this->createMockService(2);
|
||||
$participant->transportationOutbound = $this->createMockService(1);
|
||||
$participant->transportationInbound = $this->createMockService(2);
|
||||
|
||||
return $formData;
|
||||
}
|
||||
@@ -261,8 +261,8 @@ class BookingDataProcessorTest extends TestCase
|
||||
$participant = $formData->participants[0];
|
||||
$busService = $this->createMockService(1);
|
||||
$busService->subType = 'BUS';
|
||||
$participant->transportationServiceTo = $busService;
|
||||
$participant->pickup = $this->createMockPickup(1);
|
||||
$participant->transportationOutbound = $busService;
|
||||
$participant->pickupOutbound = $this->createMockPickup(1);
|
||||
|
||||
return $formData;
|
||||
}
|
||||
@@ -274,7 +274,7 @@ class BookingDataProcessorTest extends TestCase
|
||||
$participant = $formData->participants[0];
|
||||
$trainService = $this->createMockService(1);
|
||||
$trainService->subType = 'TRAIN';
|
||||
$participant->transportationServiceTo = $trainService;
|
||||
$participant->transportationOutbound = $trainService;
|
||||
|
||||
return $formData;
|
||||
}
|
||||
@@ -387,7 +387,7 @@ class BookingDataProcessorTest extends TestCase
|
||||
private function createFormDataWithoutPickups(): BookingEditDto
|
||||
{
|
||||
$formData = $this->createCompleteFormData();
|
||||
$formData->booking->pickupsTo = [];
|
||||
$formData->booking->pickupsOutbound = [];
|
||||
|
||||
return $formData;
|
||||
}
|
||||
@@ -405,8 +405,8 @@ class BookingDataProcessorTest extends TestCase
|
||||
$booking->paymentType = 'CC';
|
||||
$booking->additionalServices = [];
|
||||
$booking->transportationServices = [];
|
||||
$booking->pickupsTo = [];
|
||||
$booking->pickupsFro = [];
|
||||
$booking->pickupsOutbound = [];
|
||||
$booking->pickupsInbound = [];
|
||||
$booking->participants = [
|
||||
$this->createMockPersonalData('Participant0'),
|
||||
$this->createMockPersonalData('Participant1'),
|
||||
@@ -451,12 +451,12 @@ class BookingDataProcessorTest extends TestCase
|
||||
$participant->mobile = null;
|
||||
$participant->courses = [];
|
||||
$participant->additionalServices = [];
|
||||
$participant->skiPass = [];
|
||||
$participant->skiPass = null;
|
||||
$participant->board = [];
|
||||
$participant->rentals = [];
|
||||
$participant->transportationServiceTo = $this->createMockService(1);
|
||||
$participant->transportationServiceFro = $this->createMockService(2);
|
||||
$participant->pickup = null;
|
||||
$participant->transportationOutbound = $this->createMockService(1);
|
||||
$participant->transportationInbound = $this->createMockService(2);
|
||||
$participant->pickupOutbound = null;
|
||||
|
||||
return $participant;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user