8000 minor #17469 [Form] Make tests compatible with master (paradajozsef) · symfony/symfony@05afbb8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 05afbb8

Browse files
committed
minor #17469 [Form] Make tests compatible with master (paradajozsef)
This PR was merged into the 3.1-dev branch. Discussion ---------- [Form] Make tests compatible with master | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - I wrote tests in this PR: #17406 which was compatible only with 2.7. @xabbuh fixed it in 2.8 and 3.0 here: #17463. And this PR fixes deprecated notices in master. Kind of an unfortunate situation... Commits ------- 96e40b2 Fix unit tests in master
2 parents 64515b8 + 96e40b2 commit 05afbb8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,6 @@ public function testCustomChoiceTypeDoesNotInheritChoiceLabels()
14951495
'1' => '1',
14961496
'2' => '2',
14971497
),
1498-
'choices_as_values' => true,
14991498
)
15001499
);
15011500
$builder->add('subChoice', 'Symfony\Component\Form\Tests\Fixtures\ChoiceSubType');

src/Symfony/Component/Form/Tests/Fixtures/ChoiceSubType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ChoiceSubType extends AbstractType
2424
*/
2525
public function configureOptions(OptionsResolver $resolver)
2626
{
27-
$resolver->setDefaults(array('expanded' => true, 'choices_as_values' => true));
27+
$resolver->setDefaults(array('expanded' => true));
2828
$resolver->setNormalizer('choices', function () {
2929
return array(
3030
'attr1' => 'Attribute 1',

0 commit comments

Comments
 (0)
0