Skip to content

Commit

Permalink
[Behat][Promotion] Fix step
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed May 9, 2019
1 parent b4a4566 commit b1732fa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Sylius/Behat/Context/Ui/Admin/ManagingPromotionsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,13 @@ public function iSpecifyThatThisActionShouldBeAppliedToItemsFromCategory($taxonN
}

/**
* @When /^I add the "([^"]+)" action configured with a percentage value of (?:|-)([^"]+)% for ("[^"]+" channel)$/
* @When /^I add the "([^"]+)" action configured with a percentage value of (?:|-)([^"]+)% for ("[^"]+") channel$/
*/
public function iAddTheActionConfiguredWithAPercentageValueForChannel($actionType, $percentage = null, $channelName)
{
public function iAddTheActionConfiguredWithAPercentageValueForChannel(
string $actionType,
string $percentage = null,
string $channelName
): void {
$this->createPage->addAction($actionType);
$this->createPage->fillActionOptionForChannel($channelName, 'Percentage', $percentage);
}
Expand Down Expand Up @@ -637,7 +640,6 @@ public function thePromotionShouldNotHaveAnyRuleConfigured(PromotionInterface $p
Assert::false($this->updatePage->hasAnyRule());
}


/**
* @param string $element
* @param string $expectedMessage
Expand Down

0 comments on commit b1732fa

Please sign in to comment.