Skip to content

Commit 45d6ed8

Browse files
pierredupxabbuh
authored andcommitted
Add docs to register custom form extensions and types for unit testing
1 parent c7af8cf commit 45d6ed8

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)