Skip to content

Commit 4efad3c

Browse files
author
Sergii Kovalenko
committed
MAGETWO-58806: The dot is missed at the end of success message if Merchant moves the Category
1 parent 1b9ace0 commit 4efad3c

File tree

1 file changed

+5
-2
lines changed
  • app/code/Magento/Catalog/Test/Unit/Controller/Category

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
use Magento\Framework\ObjectManagerInterface;
1111
use Magento\Framework\Registry;
1212

13+
/**
14+
* Class MoveTest
15+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
16+
*/
1317
class MoveTest extends \PHPUnit_Framework_TestCase
1418
{
1519
/**
@@ -245,7 +249,6 @@ public function testExecuteWithLocaliedException()
245249

246250
public function testSuccessfullCategorySave()
247251
{
248-
$exceptionMessage = 'Sorry, but we can\'t find the new category you selected.';
249252
$messagesCollection = $this->getMockBuilder(\Magento\Framework\Message\Collection::class)
250253
->disableOriginalConstructor()
251254
->getMock();
@@ -307,7 +310,7 @@ public function testSuccessfullCategorySave()
307310
->with(__('You moved the category.'));
308311
$categoryMock->expects($this->once())
309312
->method('move')
310-
->with(2,1);
313+
->with(2, 1);
311314
$this->resultJsonFactoryMock
312315
->expects($this->once())
313316
->method('create')

0 commit comments

Comments
 (0)