protected function CacheableMetadataCalculationTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php \Drupal\Tests\views\Kernel\CacheableMetadataCalculationTest::setUp()
- 9 core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php \Drupal\Tests\views\Kernel\CacheableMetadataCalculationTest::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\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');
}