/** * {@inheritdoc} */ public function configureOptions(OptionsResolver $resolver) { parent::configureOptions($resolver); $resolver->setDefault('trans_domain', 'grids')->setAllowedTypes('trans_domain', 'string'); }
/** * @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException */ public function testConfigureOptionsWithInvalidGrid() { $this->type->configureOptions($resolver = new OptionsResolver()); $resolver->resolve(['batch' => $this->createBatchMock(), 'grid' => 'foo']); }