Skip to content

Commit a1945e4

Browse files
committed
ref
1 parent 8ddbcce commit a1945e4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/store/src/Command/DropStoreCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function complete(CompletionInput $input, CompletionSuggestions $suggesti
4949
protected function configure(): void
5050
{
5151
$this
52-
->addArgument('store', InputArgument::OPTIONAL, 'Name of the store to drop')
52+
->addArgument('store', InputArgument::REQUIRED, 'Name of the store to drop')
5353
->setHelp(<<<EOF
5454
The <info>%command.name%</info> command drops the stores:
5555

src/store/src/Command/SetupStoreCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function complete(CompletionInput $input, CompletionSuggestions $suggesti
4949
protected function configure(): void
5050
{
5151
$this
52-
->addArgument('store', InputArgument::OPTIONAL, 'Name of the store to setup')
52+
->addArgument('store', InputArgument::REQUIRED, 'Name of the store to setup')
5353
->setHelp(<<<EOF
5454
The <info>%command.name%</info> command setups the stores:
5555

src/store/tests/Command/DropStoreCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testCommandIsConfigured()
3838

3939
$storeArgument = $definition->getArgument('store');
4040
$this->assertSame('Name of the store to drop', $storeArgument->getDescription());
41-
$this->assertFalse($storeArgument->isRequired());
41+
$this->assertTrue($storeArgument->isRequired());
4242
}
4343

4444
public function testCommandCannotSetupUndefinedStore()

src/store/tests/Command/SetupStoreCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testCommandIsConfigured()
3838

3939
$storeArgument = $definition->getArgument('store');
4040
$this->assertSame('Name of the store to setup', $storeArgument->getDescription());
41-
$this->assertFalse($storeArgument->isRequired());
41+
$this->assertTrue($storeArgument->isRequired());
4242
}
4343

4444
public function testCommandCannotSetupUndefinedStore()

0 commit comments

Comments
 (0)