Skip to content

Commit c9b54db

Browse files
committed
minor #6381 [Form] [Cookbook] Correctly setup unit tests with dependencies (corphi)
This PR was submitted for the 3.0 branch but it was merged into the 2.8 branch instead (closes #6381). Discussion ---------- [Form] [Cookbook] Correctly setup unit tests with dependencies Among other things, `parent::setUp()` will call `getExtensions()` that uses the private variables. Commits ------- fba2da2 Calling the parent implementation is mandatory.
2 parents b20e1ca + fba2da2 commit c9b54db

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