function ConfigEntityUnitTest::setUp

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php \Drupal\KernelTests\Core\Config\ConfigEntityUnitTest::setUp()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php \Drupal\KernelTests\Core\Config\ConfigEntityUnitTest::setUp()
  3. 11.x core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php \Drupal\KernelTests\Core\Config\ConfigEntityUnitTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php, line 40

Class

ConfigEntityUnitTest
Unit tests for configuration entity base methods.

Namespace

Drupal\KernelTests\Core\Config

Code

protected function setUp() : void {
    parent::setUp();
    $this->storage = $this->container
        ->get('entity_type.manager')
        ->getStorage('config_test');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.