Skip to content

Commit e5963a6

Browse files
committed
MAGETWO-57397: Update gallery entry via API doesn't work - for mainline
1 parent b0eea2e commit e5963a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Catalog/Test/Unit/Model/Product/Gallery/GalleryManagementTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ public function testUpdate()
200200
$this->productMock->expects($this->once())->method('getMediaGalleryEntries')
201201
->willReturn([$existingEntryMock]);
202202
$entryMock->expects($this->once())->method('getId')->willReturn($entryId);
203+
$entryMock->expects($this->once())->method('getFile')->willReturn("base64");
203204
$entryMock->expects($this->once())->method('setId')->with(null);
204205

205206
$this->productMock->expects($this->once())->method('setMediaGalleryEntries')

0 commit comments

Comments
 (0)