Skip to content

Commit 5a5e5ac

Browse files
committed
minor #6042 some tweaks to unit testing form types (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- some tweaks to unit testing form types Commits ------- d2d9ebc some tweaks to unit testing form types
2 parents 6e0db1b + d2d9ebc commit 5a5e5ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cookbook/form/unit_testing.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ It often happens that you use some options that are added by
165165
:doc:`form extensions </cookbook/form/create_form_type_extension>`. One of the
166166
cases may be the ``ValidatorExtension`` with its ``invalid_message`` option.
167167
The ``TypeTestCase`` only loads the core form extension, which means an
168-
"Invalid option" exception will be raised if you try to test a class that
169-
depends on other extensions. The
170-
:method:`Symfony\\Component\\Form\\Test\\TypeTestCase::getExtensions` allows you to
171-
return a list of extensions to register::
168+
+:class:`Symfony\\Component\\OptionsResolver\\Exception\\InvalidOptionsException`
169+
+will be raised if you try to test a class that depends on other extensions.
170+
+The :method:`Symfony\\Component\\Form\\Test\\TypeTestCase::getExtensions` method
171+
+allows you to return a list of extensions to register::
172172

173173
// src/AppBundle/Tests/Form/Type/TestedTypeTests.php
174174
namespace AppBundle\Tests\Form\Type;

0 commit comments

Comments
 (0)