Explorar o código

[Form] fixed test

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
07be5bf484
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/Symfony/Tests/Component/Form/FormBuilderTest.php

+ 1 - 1
tests/Symfony/Tests/Component/Form/FormBuilderTest.php

@@ -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');
     }