Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 732680d

Browse files
committed
Improves generic node migration unit test
1 parent 670ed28 commit 732680d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Unit/Adapter/PhpcrOdmAdapterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function testCreateAutoRoute($path, $expectedParentPath, $expectedName, $
128128

129129
/**
130130
* @expectedException \RuntimeException
131-
* @expectedExceptionMessageRegExp /Failed to migrate existing.*? at "\/test\/generic" .*? It is an instance of ".*?stdClass.*?"\./
131+
* @expectedExceptionMessageRegExp /Failed to migrate existing.*? at "\/test\/generic" .*? It is an instance of "stdClass"\./
132132
*/
133133
public function testCreateAutoRouteThrowsExceptionIfItCannotMigrateExistingGenericDocumentToAutoRoute()
134134
{
@@ -145,7 +145,7 @@ public function testCreateAutoRouteThrowsExceptionIfItCannotMigrateExistingGener
145145
$this->dm->find(null, $this->baseRoutePath)->willReturn($this->baseNode);
146146
$this->dm->find(null, $this->baseRoutePath . $uri)->willReturn(
147147
$genericDocument->reveal(),
148-
$this->prophesize('stdClass')->reveal()
148+
new \stdClass()
149149
);
150150
$this->uriContext->getUri()->willReturn($uri);
151151
$this->adapter->createAutoRoute($this->uriContext->reveal(), $this->contentDocument, 'it');

0 commit comments

Comments
 (0)