@@ -29,7 +29,7 @@ class ChoiceTypeTest extends \Symfony\Component\Form\Test\TypeTestCase
29
29
'No ' => false ,
30
30
'n/a ' => '' ,
31
31
);
32
-
32
+
33
33
private $ objectChoices ;
34
34
35
35
protected $ groupedChoices = array (
@@ -104,7 +104,6 @@ public function testChoiceListWithScalarValues()
104
104
{
105
105
$ view = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\ChoiceType ' , null , array (
106
106
'choices ' => $ this ->scalarChoices ,
107
- 'choices_as_values ' => true ,
108
107
))->createView ();
109
108
110
109
$ this ->assertSame ('1 ' , $ view ->vars ['choices ' ][0 ]->value );
@@ -119,7 +118,6 @@ public function testChoiceListWithScalarValuesAndFalseAsPreSetData()
119
118
{
120
119
$ view = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\ChoiceType ' , false , array (
121
120
'choices ' => $ this ->scalarChoices ,
122
- 'choices_as_values ' => true ,
123
121
))->createView ();
124
122
125
123
$ this ->assertTrue ($ view ->vars ['is_selected ' ]($ view ->vars ['choices ' ][1 ]->value , $ view ->vars ['value ' ]), 'False value should be pre selected ' );
@@ -129,7 +127,6 @@ public function testExpandedChoiceListWithScalarValues()
129
127
{
130
128
$ view = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\ChoiceType ' , null , array (
131
129
'choices ' => $ this ->scalarChoices ,
132
- 'choices_as_values ' => true ,
133
130
'expanded ' => true ,
134
131
))->createView ();
135
132
@@ -142,7 +139,6 @@ public function testExpandedChoiceListWithScalarValuesAndFalseAsPreSetData()
142
139
{
143
140
$ view = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\ChoiceType ' , false , array (
144
141
'choices ' => $ this ->scalarChoices ,
145
- 'choices_as_values ' => true ,
146
142
'expanded ' => true ,
147
143
))->createView ();
148
144
@@ -218,7 +214,6 @@ public function testPlaceholderWithBooleanChoices()
218
214
'No ' => false ,
219
215
),
220
216
'placeholder ' => 'Select an option ' ,
221
- 'choices_as_values ' => true ,
222
217
));
223
218
224
219
$ view = $ form ->createView ();
@@ -240,7 +235,6 @@ public function testPlaceholderWithBooleanChoicesWithFalseAsPreSetData()
240
235
'No ' => false ,
241
236
),
242
237
'placeholder ' => 'Select an option ' ,
243
- 'choices_as_values ' => true ,
244
238
));
245
239
246
240
$ view = $ form ->createView ();
@@ -262,7 +256,6 @@ public function testPlaceholderWithExpandedBooleanChoices()
262
256
'No ' => false ,
263
257
),
264
258
'placeholder ' => 'Select an option ' ,
265
- 'choices_as_values ' => true ,
266
259
));
267
260
268
261
$ this ->assertTrue (isset ($ form ['placeholder ' ]), 'Placeholder should be set ' );
@@ -287,7 +280,6 @@ public function testPlaceholderWithExpandedBooleanChoicesAndWithFalseAsPreSetDat
287
280
'No ' => false ,
288
281
),
289
282
'placeholder ' => 'Select an option ' ,
290
- 'choices_as_values ' => true ,
291
283
));
292
284
293
285
$ this ->assertTrue (isset ($ form ['placeholder ' ]), 'Placeholder should be set ' );
0 commit comments