Skip to content

Commit 3d4e6b3

Browse files
committed
unit test case updated
1 parent 904b752 commit 3d4e6b3

File tree

1 file changed

+11
-1
lines changed
  • app/code/Magento/RemoteStorage/Driver/Adapter/Cache

1 file changed

+11
-1
lines changed

app/code/Magento/RemoteStorage/Driver/Adapter/Cache/Generic.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,21 @@ public function flushCache(): void
217217
*
218218
* @param string $json
219219
*/
220-
public function setFromStorage(string $json)
220+
private function setFromStorage(string $json)
221221
{
222222
$this->cacheData = array_merge($this->cacheData, $this->serializer->unserialize($json));
223223
}
224224

225+
/**
226+
* Setter for cache data
227+
*
228+
* @param array $cacheData
229+
*/
230+
public function setCacheData(array $cacheData): void
231+
{
232+
$this->cacheData = $cacheData;
233+
}
234+
225235
/**
226236
* Ensure parent directories of an object.
227237
*

0 commit comments

Comments
 (0)