Skip to content

Commit 66bf8d1

Browse files
committed
Unit Test for Directive
1 parent 37a9929 commit 66bf8d1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/Magento/Cms/Test/Unit/Controller/Adminhtml/Wysiwyg/DirectiveTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,18 @@ public function testExecuteWithDeletedImage()
286286
$placeholderPath = 'pub/static/adminhtml/Magento/backend/en_US/Magento_Cms/images/wysiwyg_skin_image.png';
287287
$this->prepareExecuteTest();
288288

289-
$this->imageAdapterMock->expects($this->at(0))
289+
$this->imageAdapterMock->expects($this->any())
290290
->method('open')
291291
->with(self::IMAGE_PATH)
292292
->willThrowException($exception);
293+
293294
$this->wysiwygConfigMock->expects($this->once())
294295
->method('getSkinImagePlaceholderPath')
295296
->willReturn($placeholderPath);
296-
$this->imageAdapterMock->expects($this->at(1))
297+
298+
$this->imageAdapterMock->expects($this->any())
297299
->method('open')
300+
->with($placeholderPath)
298301
->willThrowException($exception);
299302

300303
$this->loggerMock->expects($this->once())

0 commit comments

Comments
 (0)