mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Behat semantical fixes
This commit is contained in:
parent
cdfcb85e5c
commit
6710941628
6 changed files with 8 additions and 7 deletions
|
|
@ -13,8 +13,8 @@ Feature: Adding a new channel with menu taxon
|
||||||
|
|
||||||
@ui @javascript
|
@ui @javascript
|
||||||
Scenario: Adding a new channel with menu taxon
|
Scenario: Adding a new channel with menu taxon
|
||||||
Given I want to create a new channel
|
When I want to create a new channel
|
||||||
When I specify its code as "MOBILE"
|
And I specify its code as "MOBILE"
|
||||||
And I name it "Mobile channel"
|
And I name it "Mobile channel"
|
||||||
And I specify menu taxon as "Clothes"
|
And I specify menu taxon as "Clothes"
|
||||||
And I add it
|
And I add it
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,9 @@ Feature: Deleting a taxon
|
||||||
But the "Shovels" taxon should appear in the registry
|
But the "Shovels" taxon should appear in the registry
|
||||||
|
|
||||||
@ui @javascript
|
@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"
|
Given the store classifies its products as "T-Shirts" and "Caps"
|
||||||
And the store operates on a channel named "Web Store"
|
And the store operates on a channel named "Web Store"
|
||||||
And channel "Web Store" has menu taxon "Caps"
|
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
|
Then I should be notified that I cannot delete a menu taxon of any channel
|
||||||
|
|
|
||||||
|
|
@ -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 "[^"]+")$/
|
* @Given /^(this channel) has menu (taxon "[^"]+")$/
|
||||||
*/
|
*/
|
||||||
public function channelHasMenuTaxon(ChannelInterface $channel, TaxonInterface $taxon): void
|
public function channelHasMenuTaxon(ChannelInterface $channel, TaxonInterface $taxon): void
|
||||||
|
|
|
||||||
|
|
@ -534,7 +534,7 @@ final class ManagingChannelsContext implements Context
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Given /^(this channel) menu taxon should be "([^"]+)"$/
|
* @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
|
public function thisChannelMenuTaxonShouldBe(ChannelInterface $channel, string $menuTaxon): void
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ final class RemovingTaxonContext implements Context
|
||||||
/**
|
/**
|
||||||
* @When I remove taxon named :name
|
* @When I remove taxon named :name
|
||||||
* @When I delete taxon named :name
|
* @When I delete taxon named :name
|
||||||
|
* @When I try to delete taxon named :name
|
||||||
*/
|
*/
|
||||||
public function iRemoveTaxonNamed(string $name): void
|
public function iRemoveTaxonNamed(string $name): void
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ final class TaxonDeletionListener
|
||||||
/** @var SessionInterface */
|
/** @var SessionInterface */
|
||||||
private $session;
|
private $session;
|
||||||
|
|
||||||
/** @var ChannelRepositoryInterface $channelRepository */
|
/** @var ChannelRepositoryInterface */
|
||||||
private $channelRepository;
|
private $channelRepository;
|
||||||
|
|
||||||
/** @var TaxonAwareRuleUpdaterInterface[] */
|
/** @var TaxonAwareRuleUpdaterInterface[] */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue