Skip to content

Commit ebe0a47

Browse files
committed
fix tests
1 parent 6c595f4 commit ebe0a47

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Doctrine/Phpcr/RouteProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function getRouteByName($name)
133133
$route = $this->getObjectManager()->find($this->className, $name);
134134
if ($route
135135
&& '' !== $this->idPrefix
136-
&& 0 !== strpos($name, $this->getObjectManager()->getUnitOfWork()->getDocumentId($route), $this->idPrefix)
136+
&& 0 !== strpos($this->getObjectManager()->getUnitOfWork()->getDocumentId($route), $this->idPrefix)
137137
) {
138138
$route = null;
139139
}

Tests/Unit/Doctrine/Phpcr/RouteProviderTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ public function testGetRouteByNameUuid()
8787
->disableOriginalConstructor()
8888
->getMock()
8989
;
90-
$uow = $this->getMock('Doctrine\ODM\PHPCR\UnitOfWork');
90+
$uow = $this
91+
->getMockBuilder('Doctrine\ODM\PHPCR\UnitOfWork')
92+
->disableOriginalConstructor()
93+
->getMock()
94+
;
9195
$objectManager
9296
->expects($this->any())
9397
->method('find')

0 commit comments

Comments
 (0)