Ejemplo n.º 1
0
 public function testGetAllRoutes()
 {
     $this->objectRepositoryMock->expects($this->once())->method('findBy')->with(array(), null, 42)->will($this->returnValue(array($this->routeMock)));
     $routeProvider = new RouteProvider($this->managerRegistryMock, $this->candidatesMock, 'Route');
     $routeProvider->setManagerName('default');
     $routeProvider->setRouteCollectionLimit(42);
     $routes = $routeProvider->getRoutesByNames(null);
     $this->assertCount(1, $routes);
 }