| @@ 87-99 (lines=13) @@ | ||
| 84 | ||
| 85 | $this->loggerMock->expects($this->never())->method('logCall'); |
|
| 86 | ||
| 87 | if ($multi) { |
|
| 88 | $this->cacheMock |
|
| 89 | ->expects($this->once()) |
|
| 90 | ->method('getItems') |
|
| 91 | ->with([$cacheItem->getKey()]) |
|
| 92 | ->willReturn([$key => $cacheItem]); |
|
| 93 | } else { |
|
| 94 | $this->cacheMock |
|
| 95 | ->expects($this->once()) |
|
| 96 | ->method('getItem') |
|
| 97 | ->with($cacheItem->getKey()) |
|
| 98 | ->willReturn($cacheItem); |
|
| 99 | } |
|
| 100 | ||
| 101 | $this->persistenceHandlerMock |
|
| 102 | ->expects($this->never()) |
|
| @@ 129-141 (lines=13) @@ | ||
| 126 | ||
| 127 | $this->loggerMock->expects($this->once())->method('logCall'); |
|
| 128 | ||
| 129 | if ($multi) { |
|
| 130 | $this->cacheMock |
|
| 131 | ->expects($this->once()) |
|
| 132 | ->method('getItems') |
|
| 133 | ->with([$cacheItem->getKey()]) |
|
| 134 | ->willReturn([$key => $cacheItem]); |
|
| 135 | } else { |
|
| 136 | $this->cacheMock |
|
| 137 | ->expects($this->once()) |
|
| 138 | ->method('getItem') |
|
| 139 | ->with($cacheItem->getKey()) |
|
| 140 | ->willReturn($cacheItem); |
|
| 141 | } |
|
| 142 | ||
| 143 | $innerHandlerMock = $this->getMock($this->getHandlerClassName()); |
|
| 144 | $this->persistenceHandlerMock |
|