chore: adjust tests to recent changes

This commit is contained in:
Björn Fromme committed 2026-07-16 09:03:42 +02:00
1 parent 1a653726b4
commit 225ed518e3
3 files changed
+42 -30

No files matched your search

@@ -7,6 +7,7 @@ namespace App\Tests\Controller\Accommodation;
use App\Controller\Groups\Step2Controller;
use App\Entity\Groups\Accommodation;
use App\Form\Model\AccommodationBookingDto;
use App\Model\InquiryStatus;
use App\Service\AccommodationBookingService;
use App\Service\AccommodationSessionManager;
use App\Service\GroupsPriceCalculator;
@@ -79,7 +80,7 @@ class Step2ControllerTest extends TestCase
->expects(self::once())
->method('computeInquiryStatus')
->with(self::callback(static fn(AccommodationBookingDto $submittedDto): bool => 3 === $submittedDto->paxCount), [])
->willReturn(['isInquiry' => true, 'reasons' => ['Mindestaufenthalt: 5 Nächte (gebucht: 4)']]);
->willReturn(new InquiryStatus(true, ['Mindestaufenthalt: 5 Nächte (gebucht: 4)']));
$controller = new TestableAccommodationStep2Controller(
$bookingService,