コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }