Skip to content

Commit 8421e72

Browse files
committed
feature #7578 Add docs to register custom form extensions and types for unit testing (pierredup)
This PR was squashed before being merged into the master branch (closes #7578). Discussion ---------- Add docs to register custom form extensions and types for unit testing Docs for symfony/symfony#21780 to register custom extensions and types Commits ------- 45d6ed8 Add docs to register custom form extensions and types for unit testing
2 parents b395d8d + 45d6ed8 commit 8421e72

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

form/unit_testing.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ allows you to return a list of extensions to register::
196196
// ... your tests
197197
}
198198

199+
It is also possible to load custom form types, form type extensions or type guessers using the
200+
``getTypedExtensions``, ``getTypes`` and ``getTypeGuessers`` methods.
201+
202+
.. versionadded:: 3.3
203+
The ``getTypedExtensions``, ``getTypes`` and ``getTypeGuessers`` were introduced in Symfony 3.3.
204+
199205
Testing against Different Sets of Data
200206
--------------------------------------
201207

0 commit comments

Comments
 (0)