/**
  * Tests the Route process manager functionality.
  */
 public function testRouteProcessorManager()
 {
     $route = new Route('');
     $parameters = array('test' => 'test');
     $processors = array(10 => $this->getMockProcessor($route, $parameters), 5 => $this->getMockProcessor($route, $parameters), 0 => $this->getMockProcessor($route, $parameters));
     // Add the processors in reverse order.
     foreach ($processors as $priority => $processor) {
         $this->processorManager->addOutbound($processor, $priority);
     }
     $this->processorManager->processOutbound($route, $parameters);
 }
 /**
  * Tests the Route process manager functionality.
  */
 public function testRouteProcessorManager()
 {
     $route = new Route('');
     $parameters = array('test' => 'test');
     $route_name = 'test_name';
     $processors = array(10 => $this->getMockProcessor($route_name, $route, $parameters), 5 => $this->getMockProcessor($route_name, $route, $parameters), 0 => $this->getMockProcessor($route_name, $route, $parameters));
     // Add the processors in reverse order.
     foreach ($processors as $priority => $processor) {
         $this->processorManager->addOutbound($processor, $priority);
     }
     $cacheable_metadata = new CacheableMetadata();
     $this->processorManager->processOutbound($route_name, $route, $parameters, $cacheable_metadata);
     // Default cacheability is: permanently cacheable, no cache tags/contexts.
     $this->assertEquals((new CacheableMetadata())->setCacheMaxAge(Cache::PERMANENT), $cacheable_metadata);
 }