Skip to content

Commit f7ae805

Browse files
committed
Add success message on success
1 parent 633ed60 commit f7ae805

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/code/Magento/SampleData/Console/Command/SampleDataDeployCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
140140
return Cli::RETURN_FAILURE;
141141
}
142142

143+
$output->writeln('<info>' . 'Sample data modules have been added via composer. Please run bin/magento setup:upgrade' . '</info>');
144+
143145
return Cli::RETURN_SUCCESS;
144146
} else {
145147
$output->writeln('<info>' . 'There is no sample data for current set of modules.' . '</info>');

app/code/Magento/SampleData/Test/Unit/Console/Command/SampleDataDeployCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ public function processDataProvider(): array
163163
'composerJsonContent' => [
164164
'require' => ["magento/product-community-edition" => "0.0.1"],
165165
],
166-
'expectedMsg' => '',
166+
'expectedMsg' => 'Sample data modules have been added via composer. Please run bin/magento setup:upgrade'
167+
. PHP_EOL,
167168
'authExist' => true,
168169
],
169170
];

0 commit comments

Comments
 (0)