function NodeImportCreateTest::setUp

Same name in other branches
  1. 8.9.x core/modules/node/tests/src/Kernel/Config/NodeImportCreateTest.php \Drupal\Tests\node\Kernel\Config\NodeImportCreateTest::setUp()
  2. 10 core/modules/node/tests/src/Kernel/Config/NodeImportCreateTest.php \Drupal\Tests\node\Kernel\Config\NodeImportCreateTest::setUp()
  3. 11.x core/modules/node/tests/src/Kernel/Config/NodeImportCreateTest.php \Drupal\Tests\node\Kernel\Config\NodeImportCreateTest::setUp()

Set the default field storage backend for fields created during tests.

Overrides KernelTestBase::setUp

File

core/modules/node/tests/src/Kernel/Config/NodeImportCreateTest.php, line 27

Class

NodeImportCreateTest
Create content types during config create method invocation.

Namespace

Drupal\Tests\node\Kernel\Config

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('user');
    // Set default storage backend.
    $this->installConfig([
        'system',
        'field',
    ]);
}

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