Skip to content

Commit b1a733b

Browse files
committed
ACP2E-2093: Issue when uploading image with the same name while deleting the old image
- Fixed the unit test for the previous fix.
1 parent a8892e7 commit b1a733b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ public function testRemoveDeletedImagesFromCache($data)
120120
->willReturn($this->viewMock);
121121

122122
$this->viewMock->expects($this->once())
123-
->method('getMediaAttributes')
124-
->willReturn($data['viewImageConfig']);
123+
->method('getMediaEntities')
124+
->willReturn([$data['viewImageConfig']]);
125125

126126
$this->imageParamsBuilder->expects($this->once())
127127
->method('build')

0 commit comments

Comments
 (0)