fix: enable bookings without ski passes

This commit is contained in:
Björn Fromme
2026-08-11 11:16:11 +02:00
parent 6c1073e41c
commit af04ff690d
10 changed files with 480 additions and 124 deletions
@@ -134,6 +134,17 @@ class ParticipantFieldOptionsProviderSkiPassAvailabilityTest extends TestCase
}
}
public function testTravelWithoutSkiPassesRendersNoField(): void
{
$bookingDto = $this->createBookingDto([]);
$this->assertSame(
[],
$this->provider->getFieldOptions('skiPass', $bookingDto, 0),
'The field has to be absent entirely, not rendered with an empty choice list'
);
}
/** @return int[] */
private function getSkiPassChoiceIds(BookingDto $bookingDto): array
{