Skip to content

Commit 07a188d

Browse files
author
Oleksii Korshenko
committed
Merge pull request #13203 into #13189
2 parents 44c0e9b + 3d5d541 commit 07a188d

File tree

1 file changed

+6
-6
lines changed
  • app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Category

1 file changed

+6
-6
lines changed

app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Category/MoveTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function testExecuteWithGenericException()
115115
$layoutMock->expects($this->once())
116116
->method('getMessagesBlock')
117117
->willReturn($messageBlock);
118-
$wysiwigConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
118+
$wysiwygConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
119119
->disableOriginalConstructor()
120120
->getMock();
121121
$registry = $this->getMockBuilder(Registry::class)
@@ -135,7 +135,7 @@ public function testExecuteWithGenericException()
135135
$this->objectManager->expects($this->any())
136136
->method('get')
137137
->withConsecutive([Registry::class], [Registry::class], [\Magento\Cms\Model\Wysiwyg\Config::class])
138-
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwigConfig]]);
138+
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwygConfig]]);
139139
$categoryMock->expects($this->once())
140140
->method('move')
141141
->willThrowException(new \Exception(
@@ -189,7 +189,7 @@ public function testExecuteWithLocaliedException()
189189
$layoutMock->expects($this->once())
190190
->method('getMessagesBlock')
191191
->willReturn($messageBlock);
192-
$wysiwigConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
192+
$wysiwygConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
193193
->disableOriginalConstructor()
194194
->getMock();
195195
$registry = $this->getMockBuilder(Registry::class)
@@ -209,7 +209,7 @@ public function testExecuteWithLocaliedException()
209209
$this->objectManager->expects($this->any())
210210
->method('get')
211211
->withConsecutive([Registry::class], [Registry::class], [\Magento\Cms\Model\Wysiwyg\Config::class])
212-
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwigConfig]]);
212+
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwygConfig]]);
213213
$this->messageManager->expects($this->once())
214214
->method('addExceptionMessage');
215215
$this->messageManager->expects($this->once())
@@ -261,7 +261,7 @@ public function testSuccessfullCategorySave()
261261
$layoutMock->expects($this->once())
262262
->method('getMessagesBlock')
263263
->willReturn($messageBlock);
264-
$wysiwigConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
264+
$wysiwygConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
265265
->disableOriginalConstructor()
266266
->getMock();
267267
$registry = $this->getMockBuilder(Registry::class)
@@ -281,7 +281,7 @@ public function testSuccessfullCategorySave()
281281
$this->objectManager->expects($this->any())
282282
->method('get')
283283
->withConsecutive([Registry::class], [Registry::class], [\Magento\Cms\Model\Wysiwyg\Config::class])
284-
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwigConfig]]);
284+
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwygConfig]]);
285285
$this->messageManager->expects($this->once())
286286
->method('getMessages')
287287
->with(true)

0 commit comments

Comments
 (0)