Skip to content

Commit 39d7f39

Browse files
committed
MAGETWO-54718: [GitHub] Exception thrown where no Product Image file found #5184
1 parent 16895be commit 39d7f39

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Test/Unit/Block/Adminhtml/Product/Helper/Form/Gallery

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Test/Unit/Block/Adminhtml/Product/Helper/Form/Gallery/ContentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function testGetImagesJson()
126126

127127
$this->content->setElement($this->galleryMock);
128128
$this->galleryMock->expects($this->once())->method('getImages')->willReturn($images);
129-
$this->fileSystemMock->expects($this->once())->method('getDirectoryRead')->willReturn($this->readMock);
129+
$this->fileSystemMock->expects($this->exactly(2))->method('getDirectoryRead')->willReturn($this->readMock);
130130

131131
$this->mediaConfigMock->expects($this->any())->method('getMediaUrl')->willReturnMap($url);
132132
$this->mediaConfigMock->expects($this->any())->method('getMediaPath')->willReturnMap($mediaPath);

0 commit comments

Comments
 (0)