You are here

protected function EntityNonRevisionableTranslatableFieldTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Entity/EntityNonRevisionableTranslatableFieldTest.php \Drupal\KernelTests\Core\Entity\EntityNonRevisionableTranslatableFieldTest::setUp()
  2. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityNonRevisionableTranslatableFieldTest.php \Drupal\KernelTests\Core\Entity\EntityNonRevisionableTranslatableFieldTest::setUp()

File

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

Class

EntityNonRevisionableTranslatableFieldTest
Tests translating a non-revisionable field.

Namespace

Drupal\KernelTests\Core\Entity

Code

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