/**
* Tests setRouteOptions() with an entity type parameter.
*
* @covers ::setRouteOptions
* @covers ::getControllerClass
* @covers ::getEntityTypes
* @covers ::setParametersFromReflection
*
* @dataProvider providerTestSetRouteOptionsWithEntityTypeNoUpcasting
*/
public function testSetRouteOptionsWithEntityTypeNoUpcasting($controller) { $this->
setupEntityTypes();
$route =
new Route('/example/{entity_test}',
[ '_controller' =>
$controller,
]);
$defaults =
$route->
getDefaults();
$this->entityResolverManager->
setRouteOptions($route);
$this->
assertEquals($defaults,
$route->
getDefaults());
$this->
assertEmpty($route->
getOption('parameters'
));
}