wip: additional services with constraints
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user