Skip to content

Commit 9ece255

Browse files
AC-12682: Detach image cache generation from encryption key
1 parent a1d87e3 commit 9ece255

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

app/code/Magento/Catalog/Model/Product/Image/RemoveDeletedImagesFromCache.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Magento\Catalog\Helper\Image;
1111
use Magento\Catalog\Model\Product\Media\Config;
1212
use Magento\Framework\App\Filesystem\DirectoryList;
13-
use Magento\Framework\Encryption\Encryptor;
1413
use Magento\Framework\Encryption\EncryptorInterface;
1514
use Magento\Framework\Filesystem;
1615
use Magento\Framework\Filesystem\Directory\WriteInterface;

app/code/Magento/Catalog/Test/Unit/Model/Product/Image/RemoveDeletedImagesFromCacheTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,6 @@ public function getRespectiveMethodMockObjForRemoveDeletedImagesFromCache(array
171171
->method('convertImageMiscParamsToReadableFormat')
172172
->willReturn($data['convertImageParamsToReadableFormat']);
173173

174-
$this->encryptor->expects($this->once())
175-
->method('hash')
176-
->willReturn('85b0304775df23c13f08dd2c1f9c4c28');
177-
178174
$this->mediaConfig->expects($this->once())
179175
->method('getBaseMediaPath')
180176
->willReturn('catalog/product');

0 commit comments

Comments
 (0)