protected function ConfigEntityStaticCacheTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 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 39
Class
- ConfigEntityStaticCacheTest
- Tests the entity static cache when used by config entities.
Namespace
Drupal\KernelTests\Core\ConfigCode
protected function setUp() {
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();
}