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
@@ -10,6 +10,7 @@ use App\Form\Model\BookingDto;
use App\Form\Model\ParticipantDto;
use App\Form\Service\ParticipantInsuranceFieldHandler;
use App\Service\InsuranceMatchingService;
use App\Service\InsuranceTypeFilterService;
use PHPUnit\Framework\TestCase;
class ParticipantInsuranceFieldHandlerTest extends TestCase
@@ -20,7 +21,12 @@ class ParticipantInsuranceFieldHandlerTest extends TestCase
protected function setUp(): void
{
$this->insuranceMatchingService = $this->createMock(InsuranceMatchingService::class);
$this->handler = new ParticipantInsuranceFieldHandler($this->insuranceMatchingService);
$insuranceTypeFilterService = $this->createMock(InsuranceTypeFilterService::class);
$insuranceTypeFilterService->method('filterNonComplementary')
->willReturnArgument(0);
$this->handler = new ParticipantInsuranceFieldHandler($this->insuranceMatchingService, $insuranceTypeFilterService);
}
public function testGetFieldName(): void