Skip to content

Commit 5f73feb

Browse files
committed
Calling the parent implementation is mandatory.
Among other things, `parent::setUp()` will call `getExtensions()` that uses the private variables.
1 parent f24b8f8 commit 5f73feb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cookbook/form/unit_testing.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ make sure the ``FormRegistry`` uses the created instance::
128128
{
129129
// mock any dependencies
130130
$this->entityManager = $this->getMock('Doctrine\Common\Persistence\ObjectManager');
131+
132+
parent::setUp();
131133
}
132134

133135
protected function getExtensions()

0 commit comments

Comments
 (0)