File tree 1 file changed +2
-3
lines changed
src/Symfony/Bundle/FrameworkBundle/Tests/Routing 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -434,9 +434,8 @@ public function testGetRouteCollectionAddsContainerParametersResource()
434
434
435
435
public function testGetRouteCollectionAddsContainerParametersResourceWithSfContainer ()
436
436
{
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% ' ));
440
439
441
440
$ sc = $ this ->getServiceContainer ($ routeCollection );
442
441
$ sc ->setParameter ('locale ' , 'en ' );
You can’t perform that action at this time.
0 commit comments