public function testSetRouteOptionsWithStandardRoute($controller) { $route =
new Route('/example',
[ '_controller' =>
$controller,
]);
$defaults =
$route->
getDefaults();
$this->entityResolverManager->
setRouteOptions($route);
$this->
assertEquals($defaults,
$route->
getDefaults());
$this->
assertEmpty($route->
getOption('parameters'
));
} /**
* Data provider for testSetRouteOptionsWithStandardRoute.
*/
public function providerTestSetRouteOptionsWithStandardRoute() { return [ ['Drupal\Tests\Core\Entity\BasicControllerClass::exampleControllerMethod'
],
['Drupal\Tests\Core\Entity\test_function_controller'
],
];