chore: adjust tests to recent changes
This commit is contained in:
1 parent
3c9caeaad0
commit
18a890e50e
3 files changed
+42
-30
No files matched your search
@@ -15,7 +15,7 @@ use Symfony\Contracts\Cache\CacheInterface;
|
||||
|
||||
class ContingentControllerTest extends TestCase
|
||||
{
|
||||
public function testEnrichEntryKeepsMinPaxAsIncludedPaxCompatibilityAlias(): void
|
||||
public function testEnrichEntryIncludesPricingMetadata(): void
|
||||
{
|
||||
$controller = new ContingentController(
|
||||
$this->createMock(ContingentsClient::class),
|
||||
@@ -38,6 +38,8 @@ class ContingentControllerTest extends TestCase
|
||||
$result = $method->invoke($controller, '2026-07-06', 'available', [$price], 'EUR');
|
||||
|
||||
self::assertSame(4, $result['includedPax']);
|
||||
self::assertSame(4, $result['minPax']);
|
||||
self::assertSame(3, $result['minNights']);
|
||||
self::assertSame(123.45, $result['pricePerNight']);
|
||||
self::assertSame('EUR', $result['currency']);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user