Skip to content

Commit

Permalink
Provide improvements after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubtobiasz committed May 20, 2023
1 parent 1383ae6 commit 3eeac41
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions features/cli/removing_locale.feature
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@removing_locale
Feature: Removing locales
In order to deleting accidentally created locales
In order to delete accidentally created locales
As a Developer
I want to have a way to remove a given locale
I want to be able to delete locales

Background:
Given the store operates on a channel named "Web" with hostname "web"
Expand All @@ -14,7 +14,7 @@ Feature: Removing locales
Given the store has a product "T-Shirt banana"
And this product is named "Banana T-Shirt with Minions" in the "English (United States)" locale
And this product has no translation in the "Polish (Poland)" locale
When I run a command removing the "Polish (Poland)" locale
When I remove "Polish (Poland)" locale
Then I should be informed that locale "Polish (Poland)" has been deleted
And only the "English (United States)" locale should be present in the system

Expand Down
2 changes: 1 addition & 1 deletion src/Sylius/Behat/Context/Cli/RemoveLocaleContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct(
}

/**
* @When I run a command removing the :localeName locale
* @When I remove :localeCode locale
*/
public function iRunACommandRemovingTheLocale(string $localeName): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected function configure(): void
->addArgument(name: 'locale', description: 'Locale code to remove')
->setHelp(
<<<EOT
The <info>%command.name%</info> command removes a locale from Sylius.
The <info>%command.name%</info> command can be used to remove an unused locale from Sylius.
EOT
)
;
Expand Down

0 comments on commit 3eeac41

Please sign in to comment.