You are here

protected function CacheableMetadataCalculationTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php \Drupal\Tests\views\Kernel\CacheableMetadataCalculationTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php, line 46

Class

CacheableMetadataCalculationTest
Tests that cacheability metadata is only calculated when needed.

Namespace

Drupal\Tests\views\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installConfig([
    'views',
  ]);
  $this
    ->installEntitySchema('user');
  $this->state = $this->container
    ->get('state');
  $this->entityTypeManager = $this->container
    ->get('entity_type.manager');
}