wip: bulk insurance refactoring

This commit is contained in:
Björn Fromme
2025-10-18 16:39:57 +02:00
parent 08210b8e52
commit 479b177e90
9 changed files with 359 additions and 51 deletions
@@ -17,6 +17,7 @@ use App\BusProNet\Model\Travel;
use App\Form\Model\BookingDto;
use App\Form\Model\ParticipantDto;
use App\Service\InsuranceMatchingService;
use App\Service\InsuranceTypeFilterService;
use PHPUnit\Framework\TestCase;
/**
@@ -34,7 +35,12 @@ class BookingDataProcessorTest extends TestCase
// Create a mock InsuranceMatchingService
$insuranceMatchingService = $this->createMock(InsuranceMatchingService::class);
$this->processor = new BookingDataProcessor($insuranceMatchingService);
// Create a mock InsuranceTypeFilterService that simply returns the input
$insuranceTypeFilterService = $this->createMock(InsuranceTypeFilterService::class);
$insuranceTypeFilterService->method('filterNonComplementary')
->willReturnArgument(0);
$this->processor = new BookingDataProcessor($insuranceMatchingService, $insuranceTypeFilterService);
}
public function testCreateUpdateRequestPayloadWithCompleteData(): void