File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
app/code/Magento/Cms/Test/Unit/Controller/Adminhtml/Wysiwyg Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -286,15 +286,18 @@ public function testExecuteWithDeletedImage()
286
286
$ placeholderPath = 'pub/static/adminhtml/Magento/backend/en_US/Magento_Cms/images/wysiwyg_skin_image.png ' ;
287
287
$ this ->prepareExecuteTest ();
288
288
289
- $ this ->imageAdapterMock ->expects ($ this ->at ( 0 ))
289
+ $ this ->imageAdapterMock ->expects ($ this ->any ( ))
290
290
->method ('open ' )
291
291
->with (self ::IMAGE_PATH )
292
292
->willThrowException ($ exception );
293
+
293
294
$ this ->wysiwygConfigMock ->expects ($ this ->once ())
294
295
->method ('getSkinImagePlaceholderPath ' )
295
296
->willReturn ($ placeholderPath );
296
- $ this ->imageAdapterMock ->expects ($ this ->at (1 ))
297
+
298
+ $ this ->imageAdapterMock ->expects ($ this ->any ())
297
299
->method ('open ' )
300
+ ->with ($ placeholderPath )
298
301
->willThrowException ($ exception );
299
302
300
303
$ this ->loggerMock ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments