function CacheableMetadataCalculationTest::setUp
Overrides KernelTestBase::setUp
File
- 
              core/modules/ views/ tests/ src/ Kernel/ CacheableMetadataCalculationTest.php, line 48 
Class
- CacheableMetadataCalculationTest
- Tests that cacheability metadata is only calculated when needed.
Namespace
Drupal\Tests\views\KernelCode
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');
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
