function EntityRevisionRouteEnhancerTest::setUp

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Enhancer/EntityRevisionRouteEnhancerTest.php \Drupal\Tests\Core\Enhancer\EntityRevisionRouteEnhancerTest::setUp()
  2. 10 core/tests/Drupal/Tests/Core/Enhancer/EntityRevisionRouteEnhancerTest.php \Drupal\Tests\Core\Enhancer\EntityRevisionRouteEnhancerTest::setUp()
  3. 11.x core/tests/Drupal/Tests/Core/Enhancer/EntityRevisionRouteEnhancerTest.php \Drupal\Tests\Core\Enhancer\EntityRevisionRouteEnhancerTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Enhancer/EntityRevisionRouteEnhancerTest.php, line 26

Class

EntityRevisionRouteEnhancerTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Routing%21Enhancer%21EntityRevisionRouteEnhancer.php/class/EntityRevisionRouteEnhancer/9" title="Adds _entity_revision to the request attributes, if possible." class="local">\Drupal\Core\Routing\Enhancer\EntityRevisionRouteEnhancer</a> @group Entity

Namespace

Drupal\Tests\Core\Enhancer

Code

protected function setUp() : void {
    parent::setUp();
    $this->routeEnhancer = new EntityRevisionRouteEnhancer();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.