$container->
set('config.factory',
$this->
getConfigFactoryStub($config));
\Drupal::
setContainer($container);
} /**
* Tests the collectRoutes method.
*
* @see \Drupal\views\Plugin\views\display\PathPluginBase::collectRoutes()
*/
public function testCollectRoutes() { [$view] =
$this->
setupViewExecutableAccessPlugin();
$display =
[];
$display['display_plugin'
] = 'page';
$display['id'
] = 'page_1';
$display['display_options'
] =
[ 'path' => 'test_route',
];
$this->pathPlugin->
initDisplay($view,
$display);
$collection =
new RouteCollection();
$result =
$this->pathPlugin->
collectRoutes($collection);