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

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