protected function ConfigEntityStaticCacheTest::setUp in Drupal 9
Same name and namespace in other branches
- 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\ConfigCode
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();
}