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

Commitdb1bd1e

Browse files
committed
minor#6925 Method "$this->getMock()" is deprecated (JohnnyEvo)
This PR was submitted for the 3.1 branch but it was merged into the 2.8 branch instead (closes#6925).Discussion----------Method "$this->getMock()" is deprecatedCommits-------e151754 Method "$this->getMock()" is depreciated
2 parents5e3b315 +e151754 commitdb1bd1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎form/unit_testing.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ make sure the ``FormRegistry`` uses the created instance::
132132
protected function setUp()
133133
{
134134
// mock any dependencies
135-
$this->entityManager = $this->getMock('Doctrine\Common\Persistence\ObjectManager');
135+
$this->entityManager = $this->getMockBuilder('Doctrine\Common\Persistence\ObjectManager')->getMock();
136136

137137
parent::setUp();
138138
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp