Skip to content

Commit c1c4c3a

Browse files
MAGETWO-61778: Implement config:set command
1 parent 96d2110 commit c1c4c3a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Config/Console/Command/ConfigSetCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
123123
? $this->configSetProcessorFactory->create(ConfigSetProcessorFactory::TYPE_LOCK)
124124
: $this->configSetProcessorFactory->create(ConfigSetProcessorFactory::TYPE_DEFAULT);
125125
$message = $input->getOption(static::OPTION_LOCK)
126-
? 'Value was locked.'
126+
? 'Value was saved and locked.'
127127
: 'Value was saved.';
128128

129129
// The processing flow depends on --lock option.

dev/tests/integration/testsuite/Magento/Config/Console/Command/ConfigSetCommandTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ public function testRunLock($path, $value, $scope = ScopeConfigInterface::SCOPE_
207207
$this->outputMock->expects($this->exactly(2))
208208
->method('writeln')
209209
->withConsecutive(
210-
['<info>Value was locked.</info>'],
211-
['<info>Value was locked.</info>']
210+
['<info>Value was saved and locked.</info>'],
211+
['<info>Value was saved and locked.</info>']
212212
);
213213

214214
/** @var ConfigSetCommand $command */
@@ -276,8 +276,8 @@ public function testRunExtended(
276276
);
277277
$this->assertSame(null, $this->arrayManager->get($configPath, $this->loadConfig()));
278278

279-
$this->runCommand($arguments, $optionsLock, '<info>Value was locked.</info>');
280-
$this->runCommand($arguments, $optionsLock, '<info>Value was locked.</info>');
279+
$this->runCommand($arguments, $optionsLock, '<info>Value was saved and locked.</info>');
280+
$this->runCommand($arguments, $optionsLock, '<info>Value was saved and locked.</info>');
281281

282282
$this->assertSame($value, $this->arrayManager->get($configPath, $this->loadConfig()));
283283
}

0 commit comments

Comments
 (0)