Ejemplo n.º 1
0
 public function testGetName()
 {
     $this->assertEquals('oro_enum_choice', $this->type->getName());
 }
Ejemplo n.º 2
0
 /**
  * @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
  * @expectedExceptionMessage must be a child of "Oro\Bundle\EntityExtendBundle\Entity\AbstractEnumValue"
  */
 public function testClassNormalizerUnexpectedEnumException()
 {
     $resolver = $this->getOptionsResolver();
     $this->type->setDefaultOptions($resolver);
     $resolver->resolve(['enum_code' => 'unknown']);
 }