8000 [Form] fix tests added by #17798 by removing `choices_as_values` · dunglas/symfony@bff19d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit bff19d5

Browse files
HeahDudefabpot
authored andcommitted
[Form] fix tests added by symfony#17798 by removing choices_as_values
1 parent 1d71189 commit bff19d5

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/Symfony/Component/Form/Tests/AbstractBootstrap3LayoutTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,6 @@ public function testSingleChoiceExpandedWithLabelsAsFalse()
697697
{
698698
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', array(
699699
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b'),
700-
'choices_as_values' => true,
701700
'choice_label' => false,
702701
'multiple' => false,
703702
'expanded' => true,
@@ -732,7 +731,6 @@ public function testSingleChoiceExpandedWithLabelsSetByCallable()
732731
{
733732
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', array(
734733
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'),
735-
'choices_as_values' => true,
736734
'choice_label' => function ($choice, $label, $value) {
737735
if ('&b' === $choice) {
738736
return false;
@@ -783,7 +781,6 @@ public function testSingleChoiceExpandedWithLabelsSetFalseByCallable()
783781
{
784782
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', array(
785783
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b'),
786-
'choices_as_values' => true,
787784
'choice_label' => function () {
788785
return false;
789786
},
@@ -1065,7 +1062,6 @@ public function testMultipleChoiceExpandedWithLabelsAsFalse()
10651062
{
10661063
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array('&a'), array(
10671064
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b'),
1068-
'choices_as_values' => true,
10691065
'choice_label' => false,
10701066
'multiple' => true,
10711067
'expanded' => true,
@@ -1100,7 +1096,6 @@ public function testMultipleChoiceExpandedWithLabelsSetByCallable()
11001096
{
11011097
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array('&a'), array(
11021098
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'),
1103-
'choices_as_values' => true,
11041099
'choice_label' => function ($choice, $label, $value) {
11051100
if ('&b' === $choice) {
11061101
return false;
@@ -1151,7 +1146,6 @@ public function testMultipleChoiceExpandedWithLabelsSetFalseByCallable()
11511146
{
11521147
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array('&a'), array(
11531148
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b'),
1154-
'choices_as_values' => true,
11551149
'choice_label' => function () {
11561150
return false;
11571151
},

src/Symfony/Component/Form/Tests/AbstractDivLayoutTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,6 @@ public function testSingleChoiceExpandedWithLabelsAsFalse()
710710
{
711711
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', array(
712712
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b'),
713-
'choices_as_values' => true,
714713
'choice_label' => false,
715714
'multiple' => false,
716715
'expanded' => true,
@@ -733,7 +732,6 @@ public function testSingleChoiceExpandedWithLabelsSetByCallable()
733732
{
734733
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', array(
735734
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'),
736-
'choices_as_values' => true,
737735
'choice_label' => function ($choice, $label, $value) {
738736
if ('&b' === $choice) {
739737
return false;
@@ -765,7 +763,6 @@ public function testSingleChoiceExpandedWithLabelsSetFalseByCallable()
765763
{
766764
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', array(
767765
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b'),
768-
'choices_as_values' => true,
769766
'choice_label' => function () {
770767
return false;
771768
},
@@ -790,7 +787,6 @@ public function testMultipleChoiceExpandedWithLabelsAsFalse()
790787
{
791788
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array('&a'), array(
792789
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b'),
793-
'choices_as_values' => true,
794790
'choice_label' => false,
795791
'multiple' => true,
796792
'expanded' => true,
@@ -813,7 +809,6 @@ public function testMultipleChoiceExpandedWithLabelsSetByCallable()
813809
{
814810
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array('&a'), array(
815811
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'),
816-
'choices_as_values' => true,
817812
'choice_label' => function ($choice, $label, $value) {
818813
if ('&b' === $choice) {
819814
return false;
@@ -845,7 +840,6 @@ public function testMultipleChoiceExpandedWithLabelsSetFalseByCallable()
845840
{
846841
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array('&a'), array(
847842
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b'),
848-
'choices_as_values' => true,
849843
'choice_label' => function () {
850844
return false;
851845
},

0 commit comments

Comments
 (0)
0