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

Skip to content

Commit b71646d

Browse files
committed
[Form] fix tests added by symfony#17798 by removing choices_as_values
1 parent 902d228 commit b71646d

File tree

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
@@ -678,7 +678,6 @@ public function testSingleChoiceExpandedWithLabelsAsFalse()
678678
{
679679
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', array(
680680
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b'),
681-
'choices_as_values' => true,
682681
'choice_label' => false,
683682
'multiple' => false,
684683
'expanded' => true,
@@ -713,7 +712,6 @@ public function testSingleChoiceExpandedWithLabelsSetByCallable()
713712
{
714713
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', array(
715714
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'),
716-
'choices_as_values' => true,
717715
'choice_label' => function ($choice, $label, $value) {
718716
if ('&b' === $choice) {
719717
return false;
@@ -764,7 +762,6 @@ public function testSingleChoiceExpandedWithLabelsSetFalseByCallable()
764762
{
765763
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', array(
766764
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b'),
767-
'choices_as_values' => true,
768765
'choice_label' => function () {
769766
return false;
770767
},
@@ -1044,7 +1041,6 @@ public function testMultipleChoiceExpandedWithLabelsAsFalse()
10441041
{
10451042
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array('&a'), array(
10461043
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b'),
1047-
'choices_as_values' => true,
10481044
'choice_label' => false,
10491045
'multiple' => true,
10501046
'expanded' => true,
@@ -1079,7 +1075,6 @@ public function testMultipleChoiceExpandedWithLabelsSetByCallable()
10791075
{
10801076
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array('&a'), array(
10811077
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'),
1082-
'choices_as_values' => true,
10831078
'choice_label' => function ($choice, $label, $value) {
10841079
if ('&b' === $choice) {
10851080
return false;
@@ -1130,7 +1125,6 @@ public function testMultipleChoiceExpandedWithLabelsSetFalseByCallable()
11301125
{
11311126
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array('&a'), array(
11321127
'choices' => array('Choice&A' => '&a', 'Choice&B' => '&b'),
1133-
'choices_as_values' => true,
11341128
'choice_label' => function () {
11351129
return false;
11361130
},

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\Extens 8000 ion\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