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

cookbook/form/unit_testing.rst

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy