function it_builds_a_form(FormBuilderInterface $builder, OptionInterface $option) { $option->getId()->shouldBeCalled()->willReturn(3); $option->getName()->shouldBeCalled()->willReturn('option_name'); $builder->add('3', 'sylius_varibale_name_option_value_choice', array('label' => 'option_name', 'option' => $option, 'property_path' => '[0]'))->shouldBeCalled(); $this->buildForm($builder, array('options' => array($option))); }
/** * @Given I want to modify the :productOption product option */ public function iWantToModifyAProductOption(OptionInterface $productOption) { $this->updatePage->open(['id' => $productOption->getId()]); }