Skip to content

Commit 5fa5d39

Browse files
Ulrichweaverryan
Ulrich
authored andcommitted
Update unit_testing.rst
Forget line addExtensions() in example. This line is in FormIntegrationTestCase class. If you don't add this you'll not be able to load additionnal FormType.
1 parent e96e390 commit 5fa5d39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cookbook/form/unit_testing.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ on other extensions. You need add those extensions to the factory object::
176176
parent::setUp();
177177

178178
$this->factory = Forms::createFormFactoryBuilder()
179+
->addExtensions($this->getExtensions())
179180
->addTypeExtension(
180181
new FormTypeValidatorExtension(
181182
$this->getMock('Symfony\Component\Validator\ValidatorInterface')

0 commit comments

Comments
 (0)