12345, 'currency' => 'EUR']; $booking = new AccommodationBooking(); $booking->setPriceSnapshot($snapshot, 12345, 'EUR', 1); $priceRepository = $this->createMock(AccommodationPriceRepository::class); $priceRepository->expects(self::never())->method('findByHotelCodeAndDateRange'); $calculator = new AccommodationBookingBreakdownCalculator( new GroupsPriceCalculator(new PriceTimelineBuilder(), [ 'runningCostsEur' => 0, 'runningCostsChf' => 0, 'undersubscription30Eur' => 0, 'undersubscription30Chf' => 0, 'undersubscription40Eur' => 0, 'undersubscription40Chf' => 0, ]), $priceRepository, ); self::assertSame($snapshot, $calculator->compute($booking)); } }