We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab67584 commit 79ad314Copy full SHA for 79ad314
form/unit_testing.rst
@@ -174,6 +174,7 @@ allows you to return a list of extensions to register::
174
175
use AppBundle\Form\Type\TestedType;
176
use Symfony\Component\Form\Extension\Validator\ValidatorExtension;
177
+ use Symfony\Component\Form\Form;
178
use Symfony\Component\Form\Forms;
179
use Symfony\Component\Form\FormBuilder;
180
use Symfony\Component\Form\Test\TypeTestCase;
@@ -193,7 +194,7 @@ allows you to return a list of extensions to register::
193
194
->will($this->returnValue(new ConstraintViolationList()));
195
$validator
196
->method('getMetadataFor')
- ->will($this->returnValue(new ClassMetadata('Symfony\Component\Form\Form')));
197
+ ->will($this->returnValue(new ClassMetadata(Form::class)));
198
199
return array(
200
new ValidatorExtension($validator),
0 commit comments