Skip to content

Commit

Permalink
[Form] Use FQCN form types
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Aug 1, 2015
1 parent 3d12946 commit 2abdd50
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
Expand Up @@ -102,6 +102,9 @@ protected function persist(array $entities)
// be managed!
}

/**
* @group legacy
*/
public function testLegacyName()
{
$field = $this->factory->createNamed('name', 'entity', null, array(
Expand Down Expand Up @@ -512,7 +515,7 @@ public function testSubmitMultipleExpandedWithNegativeIntegerId()

$this->persist(array($entity1, $entity2));

$field = $this->factory->createNamed('name', 'entity', null, array(
$field = $this->factory->createNamed('name', 'Symfony\Bridge\Doctrine\Form\Type\EntityType', null, array(
'multiple' => true,
'expanded' => true,
'em' => 'default',
Expand Down
Expand Up @@ -233,7 +233,7 @@ public function testSingleChoice()

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

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

public function testMultipleChoiceExpandedWithoutTranslation()
{
$form = $this->factory->createNamed('name', 'choice', array('&a', '&c'), array(
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array('&a', '&c'), array(
'choices' => array('&a' => 'Choice&A', '&b' => 'Choice&B', '&c' => 'Choice&C'),
'multiple' => true,
'expanded' => true,
Expand Down
8 changes: 4 additions & 4 deletions src/Symfony/Component/Form/Tests/AbstractLayoutTest.php
Expand Up @@ -170,7 +170,7 @@ public function testLabel()

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

Expand Down Expand Up @@ -529,7 +529,7 @@ public function testSingleChoice()

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

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

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

0 comments on commit 2abdd50

Please sign in to comment.