8000 Update fomr testing sentence · symfony/symfony-docs@cf0f9e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf0f9e6

Browse files
committed
Update fomr testing sentence
1 parent 070b2c0 commit cf0f9e6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

form/unit_testing.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,10 @@ before creating the parent form using the ``PreloadedExtension`` class::
160160
Forms Using Validation
161161
----------------------
162162

163-
If your forms uses the ``invalid_message`` or ``constraints`` option for validation, you need to
164-
register the validation extension which provides this options.
165-
Luckily Symfony provides a custom test class which does this for you.
166-
In order to have these options registered, your test needs to extend the
167-
:class:`Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type\\TypeTestCase`
163+
If your form uses the ``invalid_message`` or ``constraints`` option for validation, you need to
164+
register the validation extension which provides these options.
165+
Luckily Symfony provides a base test class which takes care of it, just extend
166+
``Symfony\Component\Form\Tests\Extension\Validator\Type\TypeTestCase``
168167
class::
169168

170169
// tests/AppBundle/Form/Type/TestedTypeTest.php

0 commit comments

Comments
 (0)
0