File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2626 * ->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
2727 * ->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
2828 * ->add('age', 'Symfony\Component\Form\Extension\Core\Type\IntegerType')
29- * ->add('gender ', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array(
30- * 'choices' => array('Male ' => 'm ', 'Female ' => 'f '),
29+ * ->add('color ', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array(
30+ * 'choices' => array('Red ' => 'r ', 'Blue ' => 'b '),
3131 * ))
3232 * ->getForm();
3333 *
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ public function testArrayBasedForm()
3131 $ form = $ this ->factory ->createBuilder ('Symfony\Component\Form\Extension\Core\Type\FormType ' )
3232 ->add ('firstName ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' )
3333 ->add ('lastName ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' )
34- ->add ('gender ' , 'Symfony\Component\Form\Extension\Core\Type\ChoiceType ' , array (
35- 'choices ' => array ('male ' => 'Male ' , 'female ' => 'Female ' ),
34+ ->add ('color ' , 'Symfony\Component\Form\Extension\Core\Type\ChoiceType ' , array (
35+ 'choices ' => array ('red ' => 'Red ' , 'blue ' => 'Blue ' ),
3636 'required ' => false ,
3737 ))
3838 ->add ('age ' , 'Symfony\Component\Form\Extension\Core\Type\NumberType ' )
You can’t perform that action at this time.
0 commit comments