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

thePromotionWasDisabledForTheChannel() public method

public thePromotionWasDisabledForTheChannel ( Sylius\Component\Core\Model\PromotionInterface $promotion, Sylius\Component\Core\Model\ChannelInterface $channel )
$promotion Sylius\Component\Core\Model\PromotionInterface
$channel Sylius\Component\Core\Model\ChannelInterface
    public function thePromotionWasDisabledForTheChannel(PromotionInterface $promotion, ChannelInterface $channel)
    {
        $promotion->removeChannel($channel);
        $this->objectManager->flush();
    }
PromotionContext