Skip to content

Commit db1bd1e

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 deprecated Commits ------- e151754 Method "$this->getMock()" is depreciated
2 parents 5e3b315 + e151754 commit db1bd1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: form/unit_testing.rst

+1-1
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)