function let(ServiceRegistryInterface $checkerRegistry, RuleCheckerInterface $checker, FormFactoryInterface $factory) { $checker->getConfigurationFormType()->willReturn('sylius_promotion_rule_item_total_configuration'); $checkerRegistry->get(Argument::any())->willReturn($checker); $this->beConstructedWith($checkerRegistry, $factory); }
function let(ServiceRegistryInterface $registry, RuleCheckerInterface $checker, FormFactoryInterface $factory) { $checker->getConfigurationFormType()->willReturn('sylius_promotion_rule_item_total_configuration'); $registry->get(RuleInterface::TYPE_ITEM_TOTAL)->willReturn($checker); $this->beConstructedWith($registry, $factory); }