Skip to content

Commit 3e7f665

Browse files
committed
MAGETWO-66480: [GITHUB] URL key for specified store already exists #6671
- fix unit tests
1 parent 6e0003a commit 3e7f665

File tree

2 files changed

+5
-5
lines changed
  • app/code/Magento

2 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function testExecuteWithGenericException()
142142
__('Some exception')
143143
));
144144
$this->messageManager->expects($this->once())
145-
->method('addError')
145+
->method('addErrorMessage')
146146
->with(__('There was a category move error.'));
147147
$this->messageManager->expects($this->once())
148148
->method('getMessages')
@@ -305,7 +305,7 @@ public function testSuccessfullCategorySave()
305305
)
306306
->willReturn(true);
307307
$this->messageManager->expects($this->once())
308-
->method('addSuccess')
308+
->method('addSuccessMessage')
309309
->with(__('You moved the category.'));
310310
$categoryMock->expects($this->once())
311311
->method('move')

app/code/Magento/Cms/Test/Unit/Controller/Adminhtml/Page/SaveTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function testSaveAction()
167167
->with('cms_page');
168168

169169
$this->messageManagerMock->expects($this->once())
170-
->method('addSuccess')
170+
->method('addSuccessMessage')
171171
->with(__('You saved the page.'));
172172

173173
$this->resultRedirect->expects($this->atLeastOnce())->method('setPath')->with('*/*/') ->willReturnSelf();
@@ -214,7 +214,7 @@ public function testSaveAndContinue()
214214
$this->pageRepository->expects($this->once())->method('save')->with($page);
215215

216216
$this->messageManagerMock->expects($this->once())
217-
->method('addSuccess')
217+
->method('addSuccessMessage')
218218
->with(__('You saved the page.'));
219219

220220
$this->dataPersistorMock->expects($this->any())
@@ -262,7 +262,7 @@ public function testSaveActionThrowsException()
262262
->willThrowException(new \Exception('Error message.'));
263263

264264
$this->messageManagerMock->expects($this->never())
265-
->method('addSuccess');
265+
->method('addSuccessMessage');
266266
$this->messageManagerMock->expects($this->once())
267267
->method('addExceptionMessage');
268268

0 commit comments

Comments
 (0)