Skip to content

Fix a misspelled variable name in MoveTest #13203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function testExecuteWithGenericException()
$layoutMock->expects($this->once())
->method('getMessagesBlock')
->willReturn($messageBlock);
$wysiwigConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
$wysiwygConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
->disableOriginalConstructor()
->getMock();
$registry = $this->getMockBuilder(Registry::class)
Expand All @@ -135,7 +135,7 @@ public function testExecuteWithGenericException()
$this->objectManager->expects($this->any())
->method('get')
->withConsecutive([Registry::class], [Registry::class], [\Magento\Cms\Model\Wysiwyg\Config::class])
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwigConfig]]);
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwygConfig]]);
$categoryMock->expects($this->once())
->method('move')
->willThrowException(new \Exception(
Expand Down Expand Up @@ -189,7 +189,7 @@ public function testExecuteWithLocaliedException()
$layoutMock->expects($this->once())
->method('getMessagesBlock')
->willReturn($messageBlock);
$wysiwigConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
$wysiwygConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
->disableOriginalConstructor()
->getMock();
$registry = $this->getMockBuilder(Registry::class)
Expand All @@ -209,7 +209,7 @@ public function testExecuteWithLocaliedException()
$this->objectManager->expects($this->any())
->method('get')
->withConsecutive([Registry::class], [Registry::class], [\Magento\Cms\Model\Wysiwyg\Config::class])
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwigConfig]]);
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwygConfig]]);
$this->messageManager->expects($this->once())
->method('addExceptionMessage');
$this->messageManager->expects($this->once())
Expand Down Expand Up @@ -261,7 +261,7 @@ public function testSuccessfullCategorySave()
$layoutMock->expects($this->once())
->method('getMessagesBlock')
->willReturn($messageBlock);
$wysiwigConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
$wysiwygConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
->disableOriginalConstructor()
->getMock();
$registry = $this->getMockBuilder(Registry::class)
Expand All @@ -281,7 +281,7 @@ public function testSuccessfullCategorySave()
$this->objectManager->expects($this->any())
->method('get')
->withConsecutive([Registry::class], [Registry::class], [\Magento\Cms\Model\Wysiwyg\Config::class])
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwigConfig]]);
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwygConfig]]);
$this->messageManager->expects($this->once())
->method('getMessages')
->with(true)
Expand Down