Skip to content

Commit 28cddb9

Browse files
author
Mastiuhin Oleksandr
committed
Fix failed test
1 parent 4955fae commit 28cddb9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/Product/Option/Type/File/ValidatorFileTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ public function testInvalidateFile()
169169
\Zend_File_Transfer_Adapter_Http::class,
170170
['isValid', 'getErrors', 'getFileInfo', 'isUploaded']
171171
);
172+
$httpAdapterMock->expects($this->once())
173+
->method('getFileInfo')
174+
->willReturn([
175+
'options_1_file' => [
176+
'name' => 'test.jpg'
177+
]
178+
]);
172179
$httpAdapterMock->expects($this->once())
173180
->method('isValid')
174181
->willReturn(false);

0 commit comments

Comments
 (0)