/**
  * @dataProvider routesProvider
  */
 public function testRouterCreation($folders, $options, $expectedRoutes, $expectedIndexedRoutes)
 {
     $this->configurationHandler->expects($this->once())->method('language')->will($this->returnValue('en'));
     $this->configurationHandler->expects($this->once())->method('country')->will($this->returnValue('GB'));
     $this->configurationHandler->expects($this->once())->method('homepage')->will($this->returnValue('index'));
     $this->configurationHandler->expects($this->once())->method('pagesDir')->will($this->returnValue(vfsStream::url('root\\redkitecms.com\\pages\\pages')));
     $at = 0;
     foreach ($expectedRoutes as $expectedRoute) {
         $this->routeCollection->expects($this->at($at))->method('add')->with($expectedRoute);
         $at++;
     }
     $this->root = vfsStream::setup('root', null, $folders);
     $routingGenerator = new RoutingGenerator($this->configurationHandler);
     $routingGenerator->pattern('/backend')->frontController('/the/front/controller:show')->contributor($options["contributor"])->explicitHomepageRoute($options["explicitHomepageRoute"])->generate($this->router);
     $this->assertEquals($expectedIndexedRoutes, $routingGenerator->getRoutes());
 }
 /**
  * {@inheritdoc}
  */
 public function generateWebsiteRoutes(RoutingGenerator $routingGenerator, $user = null)
 {
     $routingGenerator->pattern('/backend')->frontController('Controller\\Cms\\BackendController::showAction')->contributor($user)->generate($this->router);
 }
 /**
  * {@inheritdoc}
  */
 public function generateWebsiteRoutes(RoutingGenerator $routingGenerator, $user = null)
 {
     $routingGenerator->pattern('/')->frontController('Controller\\Cms\\FrontendController::showAction')->explicitHomepageRoute(true)->generate($this->router);
 }