Ejemplo n.º 1
0
 /**
  * @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
  */
 public function testConfigureOptionsWithInvalidGrid()
 {
     $this->type->configureOptions($resolver = new OptionsResolver());
     $resolver->resolve(['action' => $this->createActionMock(), 'grid' => 'foo']);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefault('trans_domain', 'grids')->setAllowedTypes('trans_domain', 'string');
 }