Sylius\Behat\Page\Admin\Promotion\CreatePageInterface::fillRuleOptionForChannel PHP Method

fillRuleOptionForChannel() public method

public fillRuleOptionForChannel ( string $channelName, string $option, string $value )
$channelName string
$option string
$value string
    public function fillRuleOptionForChannel($channelName, $option, $value);

Usage Example

 /**
  * @When /^I add the "Item total" rule configured with (?:€|£|\$)([^"]+) amount for "([^"]+)" channel and (?:€|£|\$)([^"]+) amount for "([^"]+)" channel$/
  */
 public function iAddTheItemTotalRuleConfiguredWithTwoChannel($firstAmount, $firstChannelName, $secondAmount, $secondChannelName)
 {
     $this->createPage->addRule('Item total');
     $this->createPage->fillRuleOptionForChannel($firstChannelName, 'Amount', $firstAmount);
     $this->createPage->fillRuleOptionForChannel($secondChannelName, 'Amount', $secondAmount);
 }