public function testGetName() { $this->assertEquals('oro_enum_choice', $this->type->getName()); }
/** * @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']); }