eZ/Publish/Core/Persistence/Cache/Tests/AbstractCacheHandlerTest.php 1 location
|
@@ 163-174 (lines=12) @@
|
| 160 |
|
->with(...$arguments) |
| 161 |
|
->willReturn($data); |
| 162 |
|
|
| 163 |
|
foreach ($additionalCalls as $additionalCall) { |
| 164 |
|
$innerHandlerMock = $this->createMock($additionalCall[1]); |
| 165 |
|
$this->persistenceHandlerMock |
| 166 |
|
->expects($this->once()) |
| 167 |
|
->method($additionalCall[0]) |
| 168 |
|
->willReturn($innerHandlerMock); |
| 169 |
|
|
| 170 |
|
$innerHandlerMock |
| 171 |
|
->expects($this->once()) |
| 172 |
|
->method($additionalCall[2]) |
| 173 |
|
->willReturn($additionalCall[3]); |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
$this->cacheMock |
| 177 |
|
->expects($this->once()) |
eZ/Publish/Core/Persistence/Cache/Tests/AbstractInMemoryCacheHandlerTest.php 1 location
|
@@ 169-180 (lines=12) @@
|
| 166 |
|
->with(...$arguments) |
| 167 |
|
->willReturn($data); |
| 168 |
|
|
| 169 |
|
foreach ($additionalCalls as $additionalCall) { |
| 170 |
|
$innerHandlerMock = $this->createMock($additionalCall[1]); |
| 171 |
|
$this->persistenceHandlerMock |
| 172 |
|
->expects($this->once()) |
| 173 |
|
->method($additionalCall[0]) |
| 174 |
|
->willReturn($innerHandlerMock); |
| 175 |
|
|
| 176 |
|
$innerHandlerMock |
| 177 |
|
->expects($this->once()) |
| 178 |
|
->method($additionalCall[2]) |
| 179 |
|
->willReturn($additionalCall[3]); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
$this->cacheMock |
| 183 |
|
->expects($this->once()) |