From c53245da4dd899f86a0b4287abd70e152df7a5e1 Mon Sep 17 00:00:00 2001 From: Pierre du Plessis Date: Wed, 8 Mar 2017 10:24:02 +0200 Subject: [PATCH 1/3] Add note about new methods to add extensions for forms testing --- form/unit_testing.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/form/unit_testing.rst b/form/unit_testing.rst index 931eb7857e6..442c4821046 100644 --- a/form/unit_testing.rst +++ b/form/unit_testing.rst @@ -196,6 +196,9 @@ allows you to return a list of extensions to register:: // ... your tests } +It is also possible to load custom form types, form type extensions or type guessers using the +``getTypedExtensions``, ``getTypes`` and ``getTypeGuessers`` methods. + Testing against Different Sets of Data -------------------------------------- From fdc288a480889527776a431a9da89ed0792663fb Mon Sep 17 00:00:00 2001 From: Pierre du Plessis Date: Fri, 10 Mar 2017 08:10:56 +0200 Subject: [PATCH 2/3] Added verionadded to forms doc --- form/unit_testing.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/form/unit_testing.rst b/form/unit_testing.rst index 442c4821046..ba08e47b86a 100644 --- a/form/unit_testing.rst +++ b/form/unit_testing.rst @@ -199,6 +199,9 @@ allows you to return a list of extensions to register:: It is also possible to load custom form types, form type extensions or type guessers using the ``getTypedExtensions``, ``getTypes`` and ``getTypeGuessers`` methods. +.. versionadded:: 3.3 + The ``getTypedExtensions``, ``getTypes`` and ``getTypeGuessers`` was introduced in Symfony 3.3. + Testing against Different Sets of Data -------------------------------------- From 7bf937c07d92f31457eb54de89bfb665e5dae662 Mon Sep 17 00:00:00 2001 From: Pierre du Plessis Date: Fri, 10 Mar 2017 08:52:59 +0200 Subject: [PATCH 3/3] Changed was to were --- form/unit_testing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/form/unit_testing.rst b/form/unit_testing.rst index ba08e47b86a..2b5132f3507 100644 --- a/form/unit_testing.rst +++ b/form/unit_testing.rst @@ -200,7 +200,7 @@ It is also possible to load custom form types, form type extensions or type gues ``getTypedExtensions``, ``getTypes`` and ``getTypeGuessers`` methods. .. versionadded:: 3.3 - The ``getTypedExtensions``, ``getTypes`` and ``getTypeGuessers`` was introduced in Symfony 3.3. + The ``getTypedExtensions``, ``getTypes`` and ``getTypeGuessers`` were introduced in Symfony 3.3. Testing against Different Sets of Data --------------------------------------