Skip to content

Commit badf1d8

Browse files
committed
fix ORM tests
1 parent 623a6ad commit badf1d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tests/Unit/Doctrine/Orm/RouteProviderTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ public function setUp()
5959
$this->route2Mock = $this->buildMock('Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm\Route');
6060
$this->objectManagerMock = $this->getMock('Doctrine\Common\Persistence\ObjectManager');
6161
$this->managerRegistryMock = $this->getMock('Doctrine\Common\Persistence\ManagerRegistry');
62-
$this->objectRepositoryMock = $this->getMock('Doctrine\Orm\EntityRepository', array('findByStaticPrefix', 'findOneBy', 'findBy'));
62+
$this->objectRepositoryMock = $this->getMockBuilder('Doctrine\ORM\EntityRepository')
63+
->setMethods(array('findByStaticPrefix', 'findOneBy', 'findBy'))
64+
->disableOriginalConstructor()
65+
->getMock();
6366
$this->candidatesMock = $this->getMock('Symfony\Cmf\Component\Routing\Candidates\CandidatesInterface');
6467
$this->candidatesMock
6568
->expects($this->any())

0 commit comments

Comments
 (0)