function NodeStorageLoadFieldDataTest::setUp

File

core/modules/node/tests/src/Kernel/NodeStorageLoadFieldDataTest.php, line 42

Class

NodeStorageLoadFieldDataTest
Tests node storage loads fields of mixed cardinality and translatability.

Namespace

Drupal\Tests\node\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this->installEntitySchema('user');
  $this->installSchema('user', 'users_data');
  $this->installEntitySchema('node');
  $this->installSchema('node', 'node_access');
  $this->createContentType([
    'type' => 'page',
    'name' => 'Basic page',
    'display_submitted' => FALSE,
  ], FALSE);
  ConfigurableLanguage::createFromLangcode('en')->save();
}

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