Skip to content

Commit

Permalink
[Promotion][Behat] Update coupon validation feature
Browse files Browse the repository at this point in the history
[Promotion][Behat] Fix return type
  • Loading branch information
coldic3 committed Mar 14, 2022
1 parent d628b8a commit 10e1773
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions features/promotion/managing_coupons/coupon_validation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Feature: Coupon validation
In order to avoid making mistakes when managing a coupon
As an Administrator
I want to be prevented from adding it without specifying required fields
I want to be prevented from adding incorrect coupons

Background:
Given the store operates on a single channel in "United States"
Expand Down Expand Up @@ -34,8 +34,8 @@ Feature: Coupon validation

@ui
Scenario: Trying to add a new coupon with per customer usage limit below one
Given I want to create a new coupon for this promotion
When I specify its code as "SANTA2016"
When I want to create a new coupon for this promotion
And I specify its code as "SANTA2016"
And I limit its usage to 30 times
And I limit its per customer usage to -1 times
And I make it valid until "26.03.2017"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public function iShouldBeNotifiedThatCouponUsageLimitMustBeAtLeast()
/**
* @Then I should be notified that coupon usage limit per customer must be at least one
*/
public function iShouldBeNotifiedThatCouponUsageLimitPerCustomerMustBeAtLeast()
public function iShouldBeNotifiedThatCouponUsageLimitPerCustomerMustBeAtLeast(): void
{
/** @var CreatePageInterface|UpdatePageInterface $currentPage */
$currentPage = $this->currentPageResolver->getCurrentPageWithForm([$this->createPage, $this->updatePage]);
Expand Down

0 comments on commit 10e1773

Please sign in to comment.