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

Commit f316c2b

Browse files
committed
Tried to fix tests
1 parent 6a10307 commit f316c2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Functional/EventListener/AutoRouteListenerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function testPersistBlog()
5656
$routes = $this->getDm()->getReferrers($blog);
5757

5858
$this->assertCount(1, $routes);
59-
$this->assertInstanceOf('Symfony\Cmf\Bundle\RoutingAutoBundle\Model\AutoRouteInterface', $routes[0]);
59+
$this->assertInstanceOf('Symfony\Cmf\Bundle\RoutingAutoBundle\Model\AutoRoute', $routes[0]);
6060
$this->assertEquals('unit-testing-blog', $routes[0]->getName());
6161
$this->assertEquals(PhpcrOdmAdapter::TAG_NO_MULTILANG, $routes[0]->getAutoRouteTag());
6262
}
@@ -300,7 +300,7 @@ public function testUpdateMultilangArticle($data, $expectedPaths)
300300
$route = $this->getDm()->find(null, $expectedPath);
301301

302302
$this->assertNotNull($route);
303-
$this->assertInstanceOf('Symfony\Cmf\Bundle\RoutingAutoBundle\Model\AutoRouteInterface', $route);
303+
$this->assertInstanceOf('Symfony\Cmf\Bundle\RoutingAutoBundle\Model\AutoRoute', $route);
304304

305305
$content = $route->getContent();
306306

@@ -435,7 +435,7 @@ public function testConflictResolverAutoIncrement()
435435
);
436436

437437
foreach ($expectedRoutes as $expectedRoute) {
438-
$route = $this->getDm()->find('Symfony\Cmf\Bundle\RoutingAutoBundle\Model\AutoRouteInterface', $expectedRoute);
438+
$route = $this->getDm()->find('Symfony\Cmf\Bundle\RoutingAutoBundle\Model\AutoRoute', $expectedRoute);
439439
$this->assertNotNull($route);
440440
}
441441
}

0 commit comments

Comments
 (0)