Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9b54db

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 dependenciesAmong other things, `parent::setUp()` will call `getExtensions()` that uses the private variables.Commits-------fba2da2 Calling the parent implementation is mandatory.
2 parentsb20e1ca +fba2da2 commitc9b54db

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)

[8]ページ先頭

©2009-2025 Movatter.jp