Skip to content

Commit 99dc7b4

Browse files
Gavryshko, Ivan(igavryshko)Olga Kopylova
authored andcommitted
MAGETWO-33204: Add Suggestion to Run Update Tool After a Module(s) is Enabled - fixed issues according to CR.
1 parent d2a38ec commit 99dc7b4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

dev/tests/unit/testsuite/Magento/Setup/Controller/ConsoleControllerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,9 @@ public function testModuleActionEnabledSuggestionMessage($command, $modules, $is
360360
->with($expectedIsEnabled, $expectedModules);
361361
$this->consoleLogger->expects($this->once())
362362
->method('log')
363-
->with($this->stringContains("To make sure that the enabled modules are properly registered, run 'update' command."));
363+
->with($this->stringContains(
364+
"To make sure that the enabled modules are properly registered, run 'update' command."
365+
));
364366
$this->controller->moduleAction();
365367
}
366368

setup/src/Magento/Setup/Controller/ConsoleController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,8 @@ public function moduleAction()
500500
$updateAfterEnableMessage = '';
501501
if ($isEnable) {
502502
$message = 'The following modules have been enabled:';
503-
$updateAfterEnableMessage = "\nTo make sure that the enabled modules are properly registered, run 'update' command.";
503+
$updateAfterEnableMessage = "\nTo make sure that the enabled modules are properly registered,"
504+
. " run 'update' command.";
504505
} else {
505506
$message = 'The following modules have been disabled:';
506507
}

0 commit comments

Comments
 (0)