function EntityNonRevisionableTranslatableFieldTest::setUp

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

Overrides EntityKernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Entity/EntityNonRevisionableTranslatableFieldTest.php, line 20

Class

EntityNonRevisionableTranslatableFieldTest
Tests translating a non-revisionable field.

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function setUp() {
    parent::setUp();
    $this->installEntitySchema('entity_test_mulrev');
    $this->installEntitySchema('configurable_language');
    ConfigurableLanguage::createFromLangcode('es')->save();
}

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