[Form] fixed test
This commit is contained in:
parent
a6a3789a54
commit
07be5bf484
@ -97,7 +97,7 @@ class FormBuilderTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testCreateNoTypeNoDataClass()
|
||||
{
|
||||
$this->setExpectedException('Symfony\Component\Form\Exception\FormException', 'The data class must be set to automatically create children');
|
||||
$this->setExpectedException('Symfony\Component\Form\Exception\FormException', 'The "foo" type cannot be guessed as the data class is not set. Provide the type manually (\'text\', \'password\', ...) or set the data class.');
|
||||
$this->builder->create('foo');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user