public function EntityRevisionRouteEnhancerTest::testEnhanceWithoutParameter in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Enhancer/EntityRevisionRouteEnhancerTest.php \Drupal\Tests\Core\Enhancer\EntityRevisionRouteEnhancerTest::testEnhanceWithoutParameter()
@covers ::enhance
File
- core/
tests/ Drupal/ Tests/ Core/ Enhancer/ EntityRevisionRouteEnhancerTest.php, line 35
Class
- EntityRevisionRouteEnhancerTest
- @coversDefaultClass \Drupal\Core\Routing\Enhancer\EntityRevisionRouteEnhancer @group Entity
Namespace
Drupal\Tests\Core\EnhancerCode
public function testEnhanceWithoutParameter() {
$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));
}