Skip to content

Commit 6378000

Browse files
committed
minor #12281 Added a caution message about unit testing form types (javiereguiluz)
This PR was squashed before being merged into the 3.4 branch (closes #12281). Discussion ---------- Added a caution message about unit testing form types Fixes #8972. Commits ------- 30e2e88 Added a caution message about unit testing form types
2 parents a7ce064 + 30e2e88 commit 6378000

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

form/unit_testing.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
How to Unit Test your Forms
55
===========================
66

7+
.. caution::
8+
9+
This article is intended for developers who create
10+
:doc:`custom form types </form/create_custom_field_type>`. If you are using
11+
the :doc:`built-in Symfony form types </reference/forms/types>` or the form
12+
types provided by third-party bundles, you don't need to unit test them.
13+
714
The Form component consists of 3 core objects: a form type (implementing
815
:class:`Symfony\\Component\\Form\\FormTypeInterface`), the
916
:class:`Symfony\\Component\\Form\\Form` and the

0 commit comments

Comments
 (0)