fix: resolve stale dependent selections after booking family insurance
This commit is contained in:
@@ -21,6 +21,7 @@ use App\BusProNet\Model\Service;
|
||||
use App\BusProNet\Model\Travel;
|
||||
use App\Form\Model\BookingDto;
|
||||
use App\Form\Model\ParticipantDto;
|
||||
use App\Service\ApplicantInsuranceCascade;
|
||||
use App\Service\BookingPriceCalculator;
|
||||
use App\Service\InsuranceManager;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
@@ -63,6 +64,7 @@ class BookingDataProcessorTest extends TestCase
|
||||
$serviceProcessor,
|
||||
$payloadBuilder,
|
||||
$personalDataSynchronizer,
|
||||
new ApplicantInsuranceCascade($insuranceService, $priceCalculatorService),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -876,6 +878,7 @@ class BookingDataProcessorTest extends TestCase
|
||||
new ParticipantServiceProcessor(new NullLogger()),
|
||||
$payloadBuilder,
|
||||
new PersonalDataSynchronizer(),
|
||||
new ApplicantInsuranceCascade($insuranceService, $priceCalculatorService),
|
||||
);
|
||||
|
||||
$processor->createBookingRequestPayload($bookingDto, 'ANFRAGE');
|
||||
@@ -925,6 +928,7 @@ class BookingDataProcessorTest extends TestCase
|
||||
new ParticipantServiceProcessor(new NullLogger()),
|
||||
new BookingPayloadBuilder(new ServiceMappingCollector()),
|
||||
new PersonalDataSynchronizer(),
|
||||
new ApplicantInsuranceCascade($insuranceService, $priceCalculatorService),
|
||||
);
|
||||
|
||||
$processor->createUpdateRequestPayload($formData);
|
||||
@@ -978,6 +982,7 @@ class BookingDataProcessorTest extends TestCase
|
||||
new ParticipantServiceProcessor(new NullLogger()),
|
||||
$payloadBuilder,
|
||||
new PersonalDataSynchronizer(),
|
||||
new ApplicantInsuranceCascade($insuranceService, $priceCalculatorService),
|
||||
);
|
||||
|
||||
$processor->createBookingRequestPayload($bookingDto, 'ANFRAGE');
|
||||
@@ -1024,6 +1029,7 @@ class BookingDataProcessorTest extends TestCase
|
||||
new ParticipantServiceProcessor(new NullLogger()),
|
||||
$payloadBuilder,
|
||||
new PersonalDataSynchronizer(),
|
||||
new ApplicantInsuranceCascade($insuranceService, $priceCalculatorService),
|
||||
);
|
||||
|
||||
$processor->createBookingRequestPayload($bookingDto, 'ANFRAGE');
|
||||
@@ -1069,6 +1075,7 @@ class BookingDataProcessorTest extends TestCase
|
||||
new ParticipantServiceProcessor(new NullLogger()),
|
||||
$payloadBuilder,
|
||||
new PersonalDataSynchronizer(),
|
||||
new ApplicantInsuranceCascade($insuranceService, $priceCalculatorService),
|
||||
);
|
||||
|
||||
$processor->createBookingRequestPayload($bookingDto, 'ANFRAGE');
|
||||
|
||||
Reference in New Issue
Block a user