Skip to content

Commit 45a9f65

Browse files
committed
MAGETWO-38150: Data Backup
- Changes based on message review comments.
1 parent 75b23e2 commit 45a9f65

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

setup/src/Magento/Setup/Console/Command/BackupCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
111111
{
112112
if (!$this->deploymentConfig->isAvailable()
113113
&& ($input->getOption(self::INPUT_KEY_MEDIA) || $input->getOption(self::INPUT_KEY_DB))) {
114-
$output->writeln("<info>No information is available: the application is not installed.</info>");
114+
$output->writeln("<info>No information is available: the Magento application is not installed.</info>");
115115
return;
116116
}
117117
try {
@@ -134,7 +134,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
134134
}
135135
if (!$inputOptionProvided) {
136136
throw new \InvalidArgumentException(
137-
'No option is provided for the command to take backup.'
137+
'Not enough information provided to take backup.'
138138
);
139139
}
140140
} catch (\Exception $e) {

setup/src/Magento/Setup/Test/Unit/Console/Command/BackupCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function testExecuteNotInstalled()
111111
->will($this->returnValue(false));
112112
$this->tester->execute(['--db' => true]);
113113
$this->assertStringMatchesFormat(
114-
'No information is available: the application is not installed.%w',
114+
'No information is available: the Magento application is not installed.%w',
115115
$this->tester->getDisplay()
116116
);
117117
}
@@ -123,7 +123,7 @@ public function testExecuteNoOptions()
123123
->will($this->returnValue(false));
124124
$this->tester->execute([]);
125125
$expected = 'Enabling maintenance mode' . PHP_EOL
126-
. 'No option is provided for the command to take backup.' . PHP_EOL
126+
. 'Not enough information provided to take backup.' . PHP_EOL
127127
. 'Disabling maintenance mode';
128128
$this->assertStringMatchesFormat($expected, $this->tester->getDisplay());
129129
}

0 commit comments

Comments
 (0)