Behat semantical fixes

This commit is contained in:
Mateusz Zalewski 2020-01-13 13:02:13 +01:00
parent cdfcb85e5c
commit 6710941628
No known key found for this signature in database
GPG key ID: 9BECA0BB71612E52
6 changed files with 8 additions and 7 deletions

View file

@ -13,8 +13,8 @@ Feature: Adding a new channel with menu taxon
@ui @javascript
Scenario: Adding a new channel with menu taxon
Given I want to create a new channel
When I specify its code as "MOBILE"
When I want to create a new channel
And I specify its code as "MOBILE"
And I name it "Mobile channel"
And I specify menu taxon as "Clothes"
And I add it

View file

@ -25,9 +25,9 @@ Feature: Deleting a taxon
But the "Shovels" taxon should appear in the registry
@ui @javascript
Scenario: Deleted taxon should disappear from the registry
Scenario: Being unable to delete a menu taxon of a channel
Given the store classifies its products as "T-Shirts" and "Caps"
And the store operates on a channel named "Web Store"
And channel "Web Store" has menu taxon "Caps"
When I delete taxon named "Caps"
When I try to delete taxon named "Caps"
Then I should be notified that I cannot delete a menu taxon of any channel

View file

@ -228,7 +228,7 @@ final class ChannelContext implements Context
}
/**
* @Given /^(channel "[^"]+") has menu (taxon "[^"]+")$/
* @Given channel :channel has menu taxon :taxon
* @Given /^(this channel) has menu (taxon "[^"]+")$/
*/
public function channelHasMenuTaxon(ChannelInterface $channel, TaxonInterface $taxon): void

View file

@ -534,7 +534,7 @@ final class ManagingChannelsContext implements Context
/**
* @Given /^(this channel) menu taxon should be "([^"]+)"$/
* @Given /^the (channel "[^"]+") should have "([^"]+)" as a menu taxon$/
* @Given the channel :channel should have :menuTaxon as a menu taxon
*/
public function thisChannelMenuTaxonShouldBe(ChannelInterface $channel, string $menuTaxon): void
{

View file

@ -36,6 +36,7 @@ final class RemovingTaxonContext implements Context
/**
* @When I remove taxon named :name
* @When I delete taxon named :name
* @When I try to delete taxon named :name
*/
public function iRemoveTaxonNamed(string $name): void
{

View file

@ -26,7 +26,7 @@ final class TaxonDeletionListener
/** @var SessionInterface */
private $session;
/** @var ChannelRepositoryInterface $channelRepository */
/** @var ChannelRepositoryInterface */
private $channelRepository;
/** @var TaxonAwareRuleUpdaterInterface[] */