8000 fix test · symfony/symfony@d1b67a5 · GitHub
[go: up one dir, main page]

Skip to content

Commit d1b67a5

Browse files
fix test
1 parent a06f826 commit d1b67a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,8 @@ public function testGetRouteCollectionAddsContainerParametersResource()
434434

435435
public function testGetRouteCollectionAddsContainerParametersResourceWithSfContainer()
436436
{
437-
$routeCollection = $this->getMockBuilder(RouteCollection::class)->getMock();
438-
$routeCollection->method('getIterator')->willReturn(new \ArrayIterator(array(new Route('/%locale%'))));
439-
$routeCollection->expects($this->once())->method('addResource')->with(new ContainerParametersResource(array('locale' => 'en')));
437+
$routeCollection = new RouteCollection();
438+
$routeCollection->add('foo', new Route('/%locale%'));
440439

441440
$sc = $this->getServiceContainer($routeCollection);
442441
$sc->setParameter('locale', 'en');

0 commit comments

Comments
 (0)
0