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

fillActionOptionForChannel() public method

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

Usage Example

 /**
  * @When /^I add the "([^"]+)" action configured with a percentage value of (?:|-)([^"]+)% for ("[^"]+" channel)$/
  * @When I add the :actionType action configured without a percentage value for :channelName channel
  */
 public function iAddTheActionConfiguredWithAPercentageValueForChannel($actionType, $percentage = null, $channelName)
 {
     $this->createPage->addAction($actionType);
     $this->createPage->fillActionOptionForChannel($channelName, 'Percentage', $percentage);
 }