Skip to content

Commit 9a44da1

Browse files
author
Aliaksei Yakimovich2
committed
MC-17218: php bin/magento catalog:image:resize error if image is missing
- Fixed unit test;
1 parent fa1b66b commit 9a44da1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/MediaStorage/Test/Unit/Service/ImageResizeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function () {
248248
$this->mediaDirectoryMock->expects($this->any())
249249
->method('isFile')
250250
->with($this->testfilepath)
251-
->will($this->returnValue(false));
251+
->will($this->returnValue(true));
252252

253253
$this->databaseMock->expects($this->once())
254254
->method('saveFileToFilesystem')

0 commit comments

Comments
 (0)