Skip to content

Commit

Permalink
[CartPromotion][CatalogPromotion][Behat] Fixes after rebase with chan…
Browse files Browse the repository at this point in the history
…ging the name of field
  • Loading branch information
GSadee authored and SirDomin committed Dec 8, 2021
1 parent a65561e commit 3556f47
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: Receiving fixed discount from cart promotions only on non discounted pr

@todo @ui @api
Scenario: Receiving product discount from cart promotions also on discounted products
Given there is a promotion "Christmas sale" that is applicable to discounted products
Given there is a promotion "Christmas sale" that applies to discounted products
And this promotion gives "$10.00" off on every product priced between "$10.00" and "$50.00"
When the customer adds "T-Shirt" product to the cart
And the customer adds "Mug" product to the cart
Expand All @@ -23,7 +23,7 @@ Feature: Receiving fixed discount from cart promotions only on non discounted pr

@todo @ui @api
Scenario: Receiving product discount from cart promotions only on non discounted products
Given there is a promotion "Christmas sale" that is not applicable to discounted products
Given there is a promotion "Christmas sale" that does not apply to discounted products
And this promotion gives "$10.00" off on every product priced between "$10.00" and "$50.00"
When the customer adds "T-Shirt" product to the cart
And the customer adds "Mug" product to the cart
Expand All @@ -33,7 +33,7 @@ Feature: Receiving fixed discount from cart promotions only on non discounted pr

@todo @ui @api
Scenario: Receiving order discount from cart promotions distributed only on non discounted products
Given there is a promotion "Christmas sale" that is not applicable to discounted products
Given there is a promotion "Christmas sale" that does not apply to discounted products
And this promotion gives "$10.00" discount to every order
When the customer adds "T-Shirt" product to the cart
And the customer adds "Mug" product to the cart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: Receiving percentage discount from cart promotions only on non discount

@todo @ui @api
Scenario: Receiving product discount from cart promotions also on discounted products
Given there is a promotion "Christmas sale" that is applicable to discounted products
Given there is a promotion "Christmas sale" that applies to discounted products
And this promotion gives "50%" off on every product priced between "$10.00" and "$50.00"
When the customer adds "T-Shirt" product to the cart
And the customer adds "Mug" product to the cart
Expand All @@ -23,7 +23,7 @@ Feature: Receiving percentage discount from cart promotions only on non discount

@todo @ui @api
Scenario: Receiving product discount from cart promotions only on non discounted products
Given there is a promotion "Christmas sale" that is not applicable to discounted products
Given there is a promotion "Christmas sale" that does not apply to discounted products
And this promotion gives "50%" off on every product priced between "$10.00" and "$50.00"
When the customer adds "T-Shirt" product to the cart
And the customer adds "Mug" product to the cart
Expand All @@ -33,7 +33,7 @@ Feature: Receiving percentage discount from cart promotions only on non discount

@todo @ui @api
Scenario: Receiving order discount from cart promotions distributed only on non discounted products
Given there is a promotion "Christmas sale" that is not applicable to discounted products
Given there is a promotion "Christmas sale" that does not apply to discounted products
And this promotion gives "50%" discount to every order
When the customer adds "T-Shirt" product to the cart
And the customer adds "Mug" product to the cart
Expand Down
8 changes: 4 additions & 4 deletions src/Sylius/Behat/Context/Setup/PromotionContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function __construct(

/**
* @Given there is (also) a promotion :name
* @Given there is a promotion :name that is applicable to discounted products
* @Given there is a promotion :name that applies to discounted products
* @Given there is a promotion :name identified by :code code
*/
public function thereIsPromotion(string $name, ?string $code = null): void
Expand Down Expand Up @@ -176,12 +176,12 @@ public function thereIsPromotionWithCoupon(string $promotionName, string $coupon
}

/**
* @Given there is a promotion :name that is not applicable to discounted products
* @Given there is a promotion :name that does not apply to discounted products
*/
public function thereIsAPromotionThatIsNotApplicableToDiscountedProducts(string $name): void
public function thereIsAPromotionThatDoesNotApplyToDiscountedProducts(string $name): void
{
$promotion = $this->createPromotion($name);
$promotion->setApplicableOnDiscounted(false);
$promotion->setAppliesToDiscounted(false);

$this->promotionRepository->add($promotion);

Expand Down

0 comments on commit 3556f47

Please sign in to comment.