Method | Description | |
---|---|---|
__construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Behat\Page\Admin\Promotion\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\Promotion\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Promotion\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker, Sylius\Component\Currency\Provider\CurrencyProviderInterface $currencyProvider ) | ||
iAddAMaxPriceFilterRangeForChannel ( $channelName, $maximum ) | ||
iAddAMinMaxPriceFilterRangeForChannel ( $channelName, $minimum, $maximum ) | ||
iAddAMinPriceFilterRangeForChannel ( $channelName, $minimum ) | ||
iAddIt ( ) | ||
iAddTheAction ( $actionType ) | ||
iAddTheActionConfiguredWithAPercentageValue ( $actionType, $percentage = null ) | ||
iAddTheActionConfiguredWithAPercentageValueForChannel ( $actionType, $percentage = null, $channelName ) | ||
iAddTheActionConfiguredWithAmountForChannel ( $actionType, $amount, $channelName ) | ||
iAddTheHasTaxonRuleConfiguredWith ( $taxons ) | ||
iAddTheItemTotalRuleConfiguredWithTwoChannel ( $firstAmount, $firstChannelName, $secondAmount, $secondChannelName ) | ||
iAddTheRuleConfiguredWith ( $taxonName, $amount, $channelName ) | ||
iAddTheRuleConfiguredWithTheProduct ( $productName ) | ||
iDeletePromotion ( Sylius\Component\Core\Model\PromotionInterface $promotion ) | ||
iMakeItApplicableForTheChannel ( $channelName ) | ||
iMakeItAvailableFromTo ( DateTime $startsDate, DateTime $endsDate ) | ||
iMakeItCouponBased ( ) | ||
iMakeItExclusive ( ) | ||
iNameIt ( $name = null ) | ||
iSaveMyChanges ( ) | ||
iSetItsUsageLimitTo ( $usageLimit ) | ||
iShouldBeAbleToManageCouponsForThisPromotion ( Sylius\Component\Core\Model\PromotionInterface $promotion ) | ||
iShouldBeNotifiedOfFailure ( ) | ||
iShouldBeNotifiedThatAMinimalValueShouldBeNumeric ( $element ) | ||
iShouldBeNotifiedThatAPercentageDiscountValueMustBeAtLeast0 ( ) | ||
iShouldBeNotifiedThatIsRequired ( $element ) | ||
iShouldBeNotifiedThatPromotionCannotEndBeforeItsEvenStart ( ) | ||
iShouldBeNotifiedThatPromotionWithThisCodeAlreadyExists ( ) | ||
iShouldBeNotifiedThatTheMaximumValueOfAPercentageDiscountIs100 ( ) | ||
iShouldBeNotifiedThatThisValueShouldNotBeBlank ( ) | ||
iShouldSeePromotionsOnTheList ( $count ) | ||
iSpecifyItsCodeAs ( $code = null ) | ||
iSpecifyThatThisActionShouldBeAppliedToItemsFromCategory ( $taxonName ) | ||
iSpecifyThatThisActionShouldBeAppliedToTheProduct ( $productName ) | ||
iWantToBrowsePromotions ( ) | ||
iWantToCreateANewPromotion ( ) | ||
iWantToModifyAPromotion ( Sylius\Component\Core\Model\PromotionInterface $promotion ) | ||
itIsConfiguredWithAmountForChannel ( $amount, $channelName ) | ||
promotionShouldNotExistInTheRegistry ( Sylius\Component\Core\Model\PromotionInterface $promotion ) | ||
promotionWithElementValueShouldNotBeAdded ( $element, $name ) | ||
theCodeFieldShouldBeDisabled ( ) | ||
theFirstPromotionOnTheListShouldHave ( $field, $value ) | ||
theLastPromotionOnTheListShouldHave ( $field, $value ) | ||
thePromotionShouldAppearInTheRegistry ( $promotionName ) | ||
thePromotionShouldBeApplicableForTheChannel ( Sylius\Component\Core\Model\PromotionInterface $promotion, $channelName ) | ||
thePromotionShouldBeAvailableFromTo ( Sylius\Component\Core\Model\PromotionInterface $promotion, DateTime $startsDate, DateTime $endsDate ) | ||
thePromotionShouldBeAvailableToUseOnlyTimes ( Sylius\Component\Core\Model\PromotionInterface $promotion, $usageLimit ) | ||
thePromotionShouldBeCouponBased ( Sylius\Component\Core\Model\PromotionInterface $promotion ) | ||
thePromotionShouldBeExclusive ( Sylius\Component\Core\Model\PromotionInterface $promotion ) | ||
thePromotionShouldBeUsedTime ( Sylius\Component\Core\Model\PromotionInterface $promotion, $usage ) | ||
thereShouldBePromotion ( $number ) | ||
thereShouldStillBeOnlyOnePromotionWith ( $element, $value ) | ||
thisPromotionShouldBeCouponBased ( Sylius\Component\Core\Model\PromotionInterface $promotion ) |
Method | Description | |
---|---|---|
assertFieldValidationMessage ( string $element, string $expectedMessage ) | ||
assertIfFieldIsTrue ( Sylius\Component\Core\Model\PromotionInterface $promotion, string $field ) |
public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Behat\Page\Admin\Promotion\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\Promotion\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Promotion\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker, Sylius\Component\Currency\Provider\CurrencyProviderInterface $currencyProvider ) | ||
$sharedStorage | Sylius\Behat\Service\SharedStorageInterface | |
$indexPage | Sylius\Behat\Page\Admin\Promotion\IndexPageInterface | |
$createPage | Sylius\Behat\Page\Admin\Promotion\CreatePageInterface | |
$updatePage | Sylius\Behat\Page\Admin\Promotion\UpdatePageInterface | |
$currentPageResolver | Sylius\Behat\Service\Resolver\CurrentPageResolverInterface | |
$notificationChecker | Sylius\Behat\Service\NotificationCheckerInterface | |
$currencyProvider | Sylius\Component\Currency\Provider\CurrencyProviderInterface |
public iAddAMaxPriceFilterRangeForChannel ( $channelName, $maximum ) |
public iAddAMinMaxPriceFilterRangeForChannel ( $channelName, $minimum, $maximum ) |
public iAddAMinPriceFilterRangeForChannel ( $channelName, $minimum ) |
public iAddTheActionConfiguredWithAPercentageValue ( $actionType, $percentage = null ) |
public iAddTheActionConfiguredWithAPercentageValueForChannel ( $actionType, $percentage = null, $channelName ) |
public iAddTheActionConfiguredWithAmountForChannel ( $actionType, $amount, $channelName ) |
public iAddTheHasTaxonRuleConfiguredWith ( $taxons ) |
public iAddTheItemTotalRuleConfiguredWithTwoChannel ( $firstAmount, $firstChannelName, $secondAmount, $secondChannelName ) |
public iAddTheRuleConfiguredWith ( $taxonName, $amount, $channelName ) |
public iAddTheRuleConfiguredWithTheProduct ( $productName ) |
public iDeletePromotion ( Sylius\Component\Core\Model\PromotionInterface $promotion ) | ||
$promotion | Sylius\Component\Core\Model\PromotionInterface |
public iMakeItApplicableForTheChannel ( $channelName ) |
public iMakeItAvailableFromTo ( DateTime $startsDate, DateTime $endsDate ) | ||
$startsDate | DateTime | |
$endsDate | DateTime |
public iShouldBeAbleToManageCouponsForThisPromotion ( Sylius\Component\Core\Model\PromotionInterface $promotion ) | ||
$promotion | Sylius\Component\Core\Model\PromotionInterface |
public iShouldBeNotifiedThatAMinimalValueShouldBeNumeric ( $element ) |
public iSpecifyThatThisActionShouldBeAppliedToItemsFromCategory ( $taxonName ) |
public iSpecifyThatThisActionShouldBeAppliedToTheProduct ( $productName ) |
public iWantToModifyAPromotion ( Sylius\Component\Core\Model\PromotionInterface $promotion ) | ||
$promotion | Sylius\Component\Core\Model\PromotionInterface |
public itIsConfiguredWithAmountForChannel ( $amount, $channelName ) |
public promotionShouldNotExistInTheRegistry ( Sylius\Component\Core\Model\PromotionInterface $promotion ) | ||
$promotion | Sylius\Component\Core\Model\PromotionInterface |
public promotionWithElementValueShouldNotBeAdded ( $element, $name ) |
public theFirstPromotionOnTheListShouldHave ( $field, $value ) |
public theLastPromotionOnTheListShouldHave ( $field, $value ) |
public thePromotionShouldAppearInTheRegistry ( $promotionName ) |
public thePromotionShouldBeApplicableForTheChannel ( Sylius\Component\Core\Model\PromotionInterface $promotion, $channelName ) | ||
$promotion | Sylius\Component\Core\Model\PromotionInterface |
public thePromotionShouldBeAvailableFromTo ( Sylius\Component\Core\Model\PromotionInterface $promotion, DateTime $startsDate, DateTime $endsDate ) | ||
$promotion | Sylius\Component\Core\Model\PromotionInterface | |
$startsDate | DateTime | |
$endsDate | DateTime |
public thePromotionShouldBeAvailableToUseOnlyTimes ( Sylius\Component\Core\Model\PromotionInterface $promotion, $usageLimit ) | ||
$promotion | Sylius\Component\Core\Model\PromotionInterface |
public thePromotionShouldBeCouponBased ( Sylius\Component\Core\Model\PromotionInterface $promotion ) | ||
$promotion | Sylius\Component\Core\Model\PromotionInterface |
public thePromotionShouldBeExclusive ( Sylius\Component\Core\Model\PromotionInterface $promotion ) | ||
$promotion | Sylius\Component\Core\Model\PromotionInterface |
public thePromotionShouldBeUsedTime ( Sylius\Component\Core\Model\PromotionInterface $promotion, $usage ) | ||
$promotion | Sylius\Component\Core\Model\PromotionInterface |
public thereShouldStillBeOnlyOnePromotionWith ( $element, $value ) |
public thisPromotionShouldBeCouponBased ( Sylius\Component\Core\Model\PromotionInterface $promotion ) | ||
$promotion | Sylius\Component\Core\Model\PromotionInterface |