Skip to content

Commit 1a9b702

Browse files
author
Dmytro Vilchynskyi
committed
MAGETWO-36129: Update Content in Magento 2 by Modules - part 1
- fixed tests
1 parent 3687909 commit 1a9b702

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/Cms/Test/Unit/Controller/Adminhtml/Block/DeleteTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function testDeleteAction()
139139

140140
$this->messageManagerMock->expects($this->once())
141141
->method('addSuccess')
142-
->with(__('The block has been deleted.'));
142+
->with(__('You deleted the block.'));
143143
$this->messageManagerMock->expects($this->never())
144144
->method('addError');
145145

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function testSaveAction()
210210

211211
$this->messageManagerMock->expects($this->once())
212212
->method('addSuccess')
213-
->with(__('The block has been saved.'));
213+
->with(__('You saved the block.'));
214214

215215
$this->sessionMock->expects($this->atLeastOnce())->method('setFormData')->with(false);
216216

@@ -294,7 +294,7 @@ public function testSaveAndContinue()
294294

295295
$this->messageManagerMock->expects($this->once())
296296
->method('addSuccess')
297-
->with(__('The block has been saved.'));
297+
->with(__('You saved the block.'));
298298

299299
$this->sessionMock->expects($this->atLeastOnce())->method('setFormData')->with(false);
300300

@@ -341,7 +341,7 @@ public function testSaveActionThrowsException()
341341

342342
$this->messageManagerMock->expects($this->any())
343343
->method('addSuccess')
344-
->with(__('The block has been saved.'));
344+
->with(__('You saved the block.'));
345345
$this->messageManagerMock->expects($this->once())
346346
->method('addError');
347347

0 commit comments

Comments
 (0)