Skip to content

Commit fba2da2

Browse files
corphixabbuh
authored andcommitted
Calling the parent implementation is mandatory.
Among other things, `parent::setUp()` will call `getExtensions()` that uses the private variables.
1 parent b20e1ca commit fba2da2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: cookbook/form/unit_testing.rst

+2
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ make sure the ``FormRegistry`` uses the created instance::
133133
{
134134
// mock any dependencies
135135
$this->entityManager = $this->getMock('Doctrine\Common\Persistence\ObjectManager');
136+
137+
parent::setUp();
136138
}
137139

138140
protected function getExtensions()

0 commit comments

Comments
 (0)