Fix unit tests in master
This commit is contained in:
parent
64515b8049
commit
96e40b22b2
@ -1495,7 +1495,6 @@ class ChoiceTypeTest extends \Symfony\Component\Form\Test\TypeTestCase
|
||||
'1' => '1',
|
||||
'2' => '2',
|
||||
),
|
||||
'choices_as_values' => true,
|
||||
)
|
||||
);
|
||||
$builder->add('subChoice', 'Symfony\Component\Form\Tests\Fixtures\ChoiceSubType');
|
||||
|
@ -24,7 +24,7 @@ class ChoiceSubType extends AbstractType
|
||||
*/
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
{
|
||||
$resolver->setDefaults(array('expanded' => true, 'choices_as_values' => true));
|
||||
$resolver->setDefaults(array('expanded' => true));
|
||||
$resolver->setNormalizer('choices', function () {
|
||||
return array(
|
||||
'attr1' => 'Attribute 1',
|
||||
|
Reference in New Issue
Block a user