fix: resolve stale dependent selections after booking family insurance
This commit is contained in:
@@ -4,9 +4,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Tests\Controller\Booking\Edit;
|
||||
|
||||
use App\BusProNet\ApiClient;
|
||||
use App\BusProNet\Model\Booking;
|
||||
use App\BusProNet\Model\Travel;
|
||||
use App\BusProNet\ApiClient;
|
||||
use App\Controller\Booking\Edit\ParticipantController;
|
||||
use App\Entity\User;
|
||||
use App\Form\BookingParticipantType;
|
||||
@@ -15,6 +15,8 @@ use App\Form\Model\BookingEditContext;
|
||||
use App\Form\Model\BookingSummaryDto;
|
||||
use App\Form\Model\ParticipantDto;
|
||||
use App\Form\Model\ParticipantEditDto;
|
||||
use App\Security\Crypt;
|
||||
use App\Service\ApplicantInsuranceCascade;
|
||||
use App\Service\BookingConfigurator;
|
||||
use App\Service\BookingEditContextFactory;
|
||||
use App\Service\BookingEditDataLoader;
|
||||
@@ -22,7 +24,6 @@ use App\Service\BookingEditDraftManager;
|
||||
use App\Service\BookingSessionManager;
|
||||
use App\Service\ParticipantDataPrefiller;
|
||||
use App\Service\ParticipantFormSupport;
|
||||
use App\Security\Crypt;
|
||||
use Carbon\CarbonImmutable;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Log\LoggerInterface;
|
||||
@@ -133,6 +134,7 @@ class ParticipantControllerTest extends TestCase
|
||||
$bookingSessionService,
|
||||
$prepopulationService,
|
||||
$participantFormSupportService,
|
||||
$this->createMock(ApplicantInsuranceCascade::class),
|
||||
$user,
|
||||
$form,
|
||||
);
|
||||
@@ -241,6 +243,7 @@ class ParticipantControllerTest extends TestCase
|
||||
$bookingSessionService,
|
||||
$prepopulationService,
|
||||
$participantFormSupportService,
|
||||
$this->createMock(ApplicantInsuranceCascade::class),
|
||||
$user,
|
||||
$form,
|
||||
);
|
||||
@@ -317,6 +320,7 @@ final class TestableParticipantController extends ParticipantController
|
||||
BookingSessionManager $bookingSessionService,
|
||||
ParticipantDataPrefiller $prepopulationService,
|
||||
ParticipantFormSupport $participantFormSupportService,
|
||||
ApplicantInsuranceCascade $applicantInsuranceCascade,
|
||||
private readonly User $user,
|
||||
FormInterface $form,
|
||||
) {
|
||||
@@ -330,6 +334,7 @@ final class TestableParticipantController extends ParticipantController
|
||||
$bookingSessionService,
|
||||
$prepopulationService,
|
||||
$participantFormSupportService,
|
||||
$applicantInsuranceCascade,
|
||||
new NullLogger(),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user