feat: move display-assembly out of BookingPriceCalculator

This commit is contained in:
Björn Fromme
2026-04-16 13:34:54 +02:00
parent d1c92f2957
commit 4d86629315
8 changed files with 1093 additions and 1028 deletions
@@ -12,6 +12,7 @@ use App\Form\Model\BookingSummaryDto;
use App\Form\Model\ParticipantDto;
use App\Form\Model\RoomSelectionDto;
use App\Service\BookingPriceCalculator;
use App\Service\BookingPricingAssembler;
use App\Service\BookingSummaryAssembler;
use App\Service\CmsDataProvider;
use App\BusProNet\DataProvider\CountryDataProvider;
@@ -73,7 +74,9 @@ class BookingSummaryAssemblerTest extends TestCase
{
$priceCalculator = $this->createMock(BookingPriceCalculator::class);
$priceCalculator->method('calculateAllParticipantIndividualPrices')->willReturn([]);
$priceCalculator->method('getPricingBreakdown')->willReturn([
$pricingAssembler = $this->createMock(BookingPricingAssembler::class);
$pricingAssembler->method('getPricingBreakdown')->willReturn([
'rooms' => [],
'services' => [],
'surcharges' => null,
@@ -82,6 +85,7 @@ class BookingSummaryAssemblerTest extends TestCase
return new BookingSummaryAssembler(
$priceCalculator,
$pricingAssembler,
$this->createMock(CmsDataProvider::class),
$this->createMock(HotelLoader::class),
$this->createMock(CountryDataProvider::class),