wip: additional services with constraints

This commit is contained in:
Björn Fromme
2026-03-16 11:59:09 +01:00
parent 4b92f56ed7
commit 0f7d95d31b
28 changed files with 141 additions and 63 deletions
+10 -10
View File
@@ -153,9 +153,9 @@ class TravelDataServiceTest extends TestCase
$dateId => [
'id' => $dateId,
'hotels' => [
$hotelId => ['id' => $hotelId, 'name' => 'Test Hotel']
]
]
$hotelId => ['id' => $hotelId, 'name' => 'Test Hotel'],
],
],
];
$this->travelLoader
@@ -191,8 +191,8 @@ class TravelDataServiceTest extends TestCase
$mapping = [
$dateId => [
'id' => $dateId,
'hotels' => []
]
'hotels' => [],
],
];
$this->travelLoader
@@ -214,9 +214,9 @@ class TravelDataServiceTest extends TestCase
$dateId => [
'id' => $dateId,
'hotels' => [
$hotelId => ['id' => $hotelId, 'name' => 'Test Hotel']
]
]
$hotelId => ['id' => $hotelId, 'name' => 'Test Hotel'],
],
],
];
$this->travelLoader
@@ -256,7 +256,7 @@ class TravelDataServiceTest extends TestCase
->expects($this->once())
->method('get')
->with('travel_unified_12345_67890_local')
->willReturnCallback(function (string $key, callable $callback) use ($cacheItem, $travel) {
->willReturnCallback(function (string $key, callable $callback) use ($cacheItem) {
return $callback($cacheItem);
});
@@ -313,4 +313,4 @@ class TravelDataServiceTest extends TestCase
$this->assertSame($travel, $result);
}
}
}