public function itGivesOffOnEveryProductClassifiedAsIfOrderContainsAnyProductClassifiedAs(PromotionInterface $promotion, $discount, $discountTaxon, $targetTaxon) { $rule = $this->ruleFactory->createHasTaxon([$targetTaxon->getCode()]); $this->createUnitPercentagePromotion($promotion, $discount, $this->getTaxonFilterConfiguration([$discountTaxon->getCode()]), $rule); }