Skip to content

Commit b3ee09d

Browse files
committed
some tweaks to unit testing form types
1 parent 3039806 commit b3ee09d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cookbook/form/unit_testing.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ Adding Custom Extensions
164164
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.
167-
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::
167+
The ``TypeTestCase`` only loads the core form extensions, which means an
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)