Skip to content

Commit 394bd4b

Browse files
[Form] Use FQCN form types
1 parent 8bd2c71 commit 394bd4b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Tests/AbstractBootstrap3LayoutTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public function testSingleChoice()
233233

234234
public function testSingleChoiceWithoutTranslation()
235235
{
236-
$form = $this->factory->createNamed('name', 'choice', '&a', array(
236+
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', array(
237237
'choices' => array('&a' => 'Choice&A', '&b' => 'Choice&B'),
238238
'multiple' => false,
239239
'expanded' => false,
@@ -654,7 +654,7 @@ public function testSingleChoiceExpanded()
654654

655655
public function testSingleChoiceExpandedWithoutTranslation()
656656
{
657-
$form = $this->factory->createNamed('name', 'choice', '&a', array(
657+
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', array(
658658
'choices' => array('&a' => 'Choice&A', '&b' => 'Choice&B'),
659659
'multiple' => false,
660660
'expanded' => true,
@@ -853,7 +853,7 @@ public function testMultipleChoiceExpanded()
853853

854854
public function testMultipleChoiceExpandedWithoutTranslation()
855855
{
856-
$form = $this->factory->createNamed('name', 'choice', array('&a', '&c'), array(
856+
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array('&a', '&c'), array(
857857
'choices' => array('&a' => 'Choice&A', '&b' => 'Choice&B', '&c' => 'Choice&C'),
858858
'multiple' => true,
859859
'expanded' => true,

Tests/AbstractLayoutTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function testLabel()
170170

171171
public function testLabelWithoutTranslation()
172172
{
173-
$form = $this->factory->createNamed('name', 'text', null, array(
173+
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\TextType', null, array(
174174
'translation_domain' => false,
175175
));
176176

@@ -529,7 +529,7 @@ public function testSingleChoice()
529529

530530
public function testSingleChoiceWithoutTranslation()
531531
{
532-
$form = $this->factory->createNamed('name', 'choice', '&a', array(
532+
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', array(
533533
'choices' => array('&a' => 'Choice&A', '&b' => 'Choice&B'),
534534
'multiple' => false,
535535
'expanded' => false,
@@ -927,7 +927,7 @@ public function testSingleChoiceExpanded()
927927

928928
public function testSingleChoiceExpandedWithoutTranslation()
929929
{
930-
$form = $this->factory->createNamed('name', 'choice', '&a', array(
930+
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', array(
931931
'choices' => array('&a' => 'Choice&A', '&b' => 'Choice&B'),
932932
'multiple' => false,
933933
'expanded' => true,
@@ -1047,7 +1047,7 @@ public function testMultipleChoiceExpanded()
10471047

10481048
public function testMultipleChoiceExpandedWithoutTranslation()
10491049
{
1050-
$form = $this->factory->createNamed('name', 'choice', array('&a', '&c'), array(
1050+
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array('&a', '&c'), array(
10511051
'choices' => array('&a' => 'Choice&A', '&b' => 'Choice&B', '&c' => 'Choice&C'),
10521052
'multiple' => true,
10531053
'expanded' => true,

0 commit comments

Comments
 (0)