/** */ public function testDefault() { /** @var OptionsResolver|ObjectProphecy $optionResolver */ $optionResolver = $this->prophesize('Symfony\\Component\\OptionsResolver\\OptionsResolver'); $this->prophesizeDefault($optionResolver); $this->type->configureOptions($optionResolver->reveal()); }
/** * @param OptionsResolver $resolver */ public function configureOptions(OptionsResolver $resolver) { parent::configureOptions($resolver); $resolver->setDefault('data_class', 'AppBundle\\Entity\\Item'); }