Skip to content

Commit 5ff05e2

Browse files
committed
Add compatibility with with Symfony 2.8 to tests
1 parent c2e3854 commit 5ff05e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tests/Translation/Extractor/File/Fixture/MyFormType.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,18 @@ public function buildForm(FormBuilder $builder, array $options)
8282
$builder
8383
->add('choices_with_translation_domain', 'choice', array(
8484
'choices' => array('form.choices_with_translation_domain.label' => 'form.choices_with_translation_domain.value'),
85-
'choice_translation_domain' => 'choice-domain'
85+
'choice_translation_domain' => 'choice-domain',
86+
'choices_as_values' => true,
8687
))
8788
->add('choices_without_translation', 'choice', array(
8889
'choices' => array('form.choices_without_translation.label' => 'form.choices_without_translation.value'),
8990
'choice_translation_domain' => false,
91+
'choices_as_values' => true,
9092
))
9193
->add('untranslatable_label', 'text', array(
9294
'label' => 'form.untranslatable_label.label',
9395
'translation_domain' => false,
96+
'choices_as_values' => true,
9497
))
9598
;
9699
}

0 commit comments

Comments
 (0)