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

addRule() public method

public addRule ( string $ruleName )
$ruleName string
    public function addRule($ruleName);

Usage Example

 /**
  * @Given I add the "Total price of items from taxon" rule configured with :count :taxonName
  */
 public function iAddTheRuleConfiguredWith($count, $taxonName)
 {
     $this->createPage->addRule('Total price of items from taxon');
     $this->createPage->selectRuleOption('Taxon', $taxonName);
     $this->createPage->fillRuleOption('Amount', $count);
 }
All Usage Examples Of Sylius\Behat\Page\Admin\Promotion\CreatePageInterface::addRule