File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Catalog/Test/Unit/Controller/Adminhtml/Category
Cms/Test/Unit/Controller/Adminhtml/Page Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ public function testExecuteWithGenericException()
142
142
__ ('Some exception ' )
143
143
));
144
144
$ this ->messageManager ->expects ($ this ->once ())
145
- ->method ('addError ' )
145
+ ->method ('addErrorMessage ' )
146
146
->with (__ ('There was a category move error. ' ));
147
147
$ this ->messageManager ->expects ($ this ->once ())
148
148
->method ('getMessages ' )
@@ -305,7 +305,7 @@ public function testSuccessfullCategorySave()
305
305
)
306
306
->willReturn (true );
307
307
$ this ->messageManager ->expects ($ this ->once ())
308
- ->method ('addSuccess ' )
308
+ ->method ('addSuccessMessage ' )
309
309
->with (__ ('You moved the category. ' ));
310
310
$ categoryMock ->expects ($ this ->once ())
311
311
->method ('move ' )
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ public function testSaveAction()
167
167
->with ('cms_page ' );
168
168
169
169
$ this ->messageManagerMock ->expects ($ this ->once ())
170
- ->method ('addSuccess ' )
170
+ ->method ('addSuccessMessage ' )
171
171
->with (__ ('You saved the page. ' ));
172
172
173
173
$ this ->resultRedirect ->expects ($ this ->atLeastOnce ())->method ('setPath ' )->with ('*/*/ ' ) ->willReturnSelf ();
@@ -214,7 +214,7 @@ public function testSaveAndContinue()
214
214
$ this ->pageRepository ->expects ($ this ->once ())->method ('save ' )->with ($ page );
215
215
216
216
$ this ->messageManagerMock ->expects ($ this ->once ())
217
- ->method ('addSuccess ' )
217
+ ->method ('addSuccessMessage ' )
218
218
->with (__ ('You saved the page. ' ));
219
219
220
220
$ this ->dataPersistorMock ->expects ($ this ->any ())
@@ -262,7 +262,7 @@ public function testSaveActionThrowsException()
262
262
->willThrowException (new \Exception ('Error message. ' ));
263
263
264
264
$ this ->messageManagerMock ->expects ($ this ->never ())
265
- ->method ('addSuccess ' );
265
+ ->method ('addSuccessMessage ' );
266
266
$ this ->messageManagerMock ->expects ($ this ->once ())
267
267
->method ('addExceptionMessage ' );
268
268
You can’t perform that action at this time.
0 commit comments