You are here

protected function ConfigEntityStaticCacheTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Config/ConfigEntityStaticCacheTest.php \Drupal\KernelTests\Core\Config\ConfigEntityStaticCacheTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Config/ConfigEntityStaticCacheTest.php, line 42

Class

ConfigEntityStaticCacheTest
Tests the entity static cache when used by config entities.

Namespace

Drupal\KernelTests\Core\Config

Code

protected function setUp() : void {
  parent::setUp();
  $this->entityTypeId = 'config_test';
  $this->entityId = 'test_1';
  $this->container
    ->get('entity_type.manager')
    ->getStorage($this->entityTypeId)
    ->create([
    'id' => $this->entityId,
    'label' => 'Original label',
  ])
    ->save();
}