Skip to content

Added a caution message about unit testing form types #12281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions form/unit_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
How to Unit Test your Forms
===========================

.. caution::

This article is intended for developers who create
:doc:`custom form types </form/create_custom_field_type>`. If you are using
the :doc:`built-in Symfony form types </reference/forms/types>` or the form
types provided by third-party bundles, you don't need to unit test them.

The Form component consists of 3 core objects: a form type (implementing
:class:`Symfony\\Component\\Form\\FormTypeInterface`), the
:class:`Symfony\\Component\\Form\\Form` and the
Expand Down