File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 ' );
You can’t perform that action at this time.
0 commit comments