function it_builds_form_with_proper_fields(FormBuilderInterface $builder, TaxonRepositoryInterface $taxonRepository)
 {
     $taxonRepository->getClassName()->willReturn('taxon');
     $builder->add('taxon', 'sylius_taxon_from_identifier', Argument::type('array'))->shouldBeCalled()->willReturn($builder);
     $builder->add('count', 'integer', Argument::type('array'))->shouldBeCalled()->willReturn($builder);
     $this->buildForm($builder, []);
 }
 /**
  * {@inheritdoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('taxon', 'sylius_taxon_from_identifier', ['label' => 'sylius.form.promotion_rule.contains_taxon.taxon', 'class' => $this->taxonRepository->getClassName(), 'query_builder' => function () {
         return $this->taxonRepository->getFormQueryBuilder();
     }, 'identifier' => 'code'])->add('count', 'integer', ['label' => 'sylius.form.promotion_rule.contains_taxon.count']);
 }