function EntityRevisionRouteEnhancerTest::testEnhanceWithoutParameter
Tests enhance without parameter.
@legacy-covers ::enhance
File
-
core/
tests/ Drupal/ Tests/ Core/ Enhancer/ EntityRevisionRouteEnhancerTest.php, line 42
Class
Namespace
Drupal\Tests\Core\EnhancerCode
public function testEnhanceWithoutParameter() : void {
$route = new Route('/test-path/{entity_test}');
$request = Request::create('/test-path');
$defaults = [];
$defaults[RouteObjectInterface::ROUTE_OBJECT] = $route;
$this->assertEquals($defaults, $this->routeEnhancer
->enhance($defaults, $request));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.