Sylius\Behat\Context\Setup\PromotionContext::createUnitFixedPromotion PHP Method

createUnitFixedPromotion() private method

private createUnitFixedPromotion ( Sylius\Component\Core\Model\PromotionInterface $promotion, integer $discount, array $configuration = [], Sylius\Component\Promotion\Model\PromotionRuleInterface $rule = null )
$promotion Sylius\Component\Core\Model\PromotionInterface
$discount integer
$configuration array
$rule Sylius\Component\Promotion\Model\PromotionRuleInterface
    private function createUnitFixedPromotion(PromotionInterface $promotion, $discount, array $configuration = [], PromotionRuleInterface $rule = null)
    {
        $channelCode = $this->sharedStorage->get('channel')->getCode();
        $this->persistPromotion($promotion, $this->actionFactory->createUnitFixedDiscount($discount, $channelCode), [$channelCode => $configuration], $rule);
    }
PromotionContext