fixed form tests
This commit is contained in:
parent
c68508f63c
commit
d0130d946b
|
@ -685,7 +685,7 @@ class ChoiceTypeTest extends \Symfony\Component\Form\Test\TypeTestCase
|
|||
|
||||
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,
|
||||
'expanded' => false,
|
||||
'choices' => array('test'),
|
||||
|
@ -700,7 +700,7 @@ class ChoiceTypeTest extends \Symfony\Component\Form\Test\TypeTestCase
|
|||
|
||||
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,
|
||||
'expanded' => false,
|
||||
'choices' => array('test'),
|
||||
|
@ -715,7 +715,7 @@ class ChoiceTypeTest extends \Symfony\Component\Form\Test\TypeTestCase
|
|||
|
||||
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,
|
||||
'expanded' => true,
|
||||
'choices' => array('test'),
|
||||
|
@ -730,7 +730,7 @@ class ChoiceTypeTest extends \Symfony\Component\Form\Test\TypeTestCase
|
|||
|
||||
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,
|
||||
'expanded' => true,
|
||||
'choices' => array('test'),
|
||||
|
|
Reference in New Issue