Skip to content

Commit f0887ae

Browse files
committed
Remove section about forms using validation
1 parent 6fda2df commit f0887ae

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

form/unit_testing.rst

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -157,24 +157,6 @@ before creating the parent form using the ``PreloadedExtension`` class::
157157
be getting errors that are not related to the form you are currently
158158
testing but to its children.
159159

160-
Forms Using Validation
161-
----------------------
162-
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``::
167-
168-
// tests/AppBundle/Form/Type/TestedTypeTest.php
169-
namespace Tests\AppBundle\Form\Type;
170-
171-
use Symfony\Component\Form\Tests\Extension\Validator\Type\TypeTestCase;
172-
173-
class TestedTypeTest extends TypeTestCase
174-
{
175-
// ...
176-
}
177-
178160
Adding Custom Extensions
179161
------------------------
180162

0 commit comments

Comments
 (0)