/** * @param \FSi\Bundle\AdminBundle\Admin\CRUD\FormElement $element * @param \Symfony\Component\Form\FormFactory $formFactory */ function it_mount_form_factory_to_elements_that_implements_form_element($element, $formFactory) { $element->setFormFactory($formFactory)->shouldBeCalled(); $this->mount($element); }