fixed form tests

This commit is contained in:
Fabien Potencier 2016-06-29 06:57:44 +02:00
parent c68508f63c
commit d0130d946b

View File

@ -685,7 +685,7 @@ class ChoiceTypeTest extends \Symfony\Component\Form\Test\TypeTestCase
public function testSubmitSingleChoiceWithEmptyData() public function testSubmitSingleChoiceWithEmptyData()
{ {
$form = $this->factory->create('choice', null, array( $form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\ChoiceType', null, array(
'multiple' => false, 'multiple' => false,
'expanded' => false, 'expanded' => false,
'choices' => array('test'), 'choices' => array('test'),
@ -700,7 +700,7 @@ class ChoiceTypeTest extends \Symfony\Component\Form\Test\TypeTestCase
public function testSubmitMultipleChoiceWithEmptyData() public function testSubmitMultipleChoiceWithEmptyData()
{ {
$form = $this->factory->create('choice', null, array( $form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\ChoiceType', null, array(
'multiple' => true, 'multiple' => true,
'expanded' => false, 'expanded' => false,
'choices' => array('test'), 'choices' => array('test'),
@ -715,7 +715,7 @@ class ChoiceTypeTest extends \Symfony\Component\Form\Test\TypeTestCase
public function testSubmitSingleChoiceExpandedWithEmptyData() public function testSubmitSingleChoiceExpandedWithEmptyData()
{ {
$form = $this->factory->create('choice', null, array( $form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\ChoiceType', null, array(
'multiple' => false, 'multiple' => false,
'expanded' => true, 'expanded' => true,
'choices' => array('test'), 'choices' => array('test'),
@ -730,7 +730,7 @@ class ChoiceTypeTest extends \Symfony\Component\Form\Test\TypeTestCase
public function testSubmitMultipleChoiceExpandedWithEmptyData() public function testSubmitMultipleChoiceExpandedWithEmptyData()
{ {
$form = $this->factory->create('choice', null, array( $form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\ChoiceType', null, array(
'multiple' => true, 'multiple' => true,
'expanded' => true, 'expanded' => true,
'choices' => array('test'), 'choices' => array('test'),