You are here

protected function ContentEntityNonRevisionableFieldTest::setUp in Drupal 8

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

Overrides EntityKernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Entity/ContentEntityNonRevisionableFieldTest.php, line 43

Class

ContentEntityNonRevisionableFieldTest
Tests non-revisionable fields on revisionable (and translatable) entities.

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function setUp() {
  parent::setUp();

  // Enable an additional language.
  ConfigurableLanguage::createFromLangcode('de')
    ->save();
  $this
    ->installEntitySchema('entity_test_mulrev');
  $this
    ->installEntitySchema('entity_test_rev');
  $this->mulRev = $this->entityTypeManager
    ->getStorage('entity_test_mulrev');
  $this->rev = $this->entityTypeManager
    ->getStorage('entity_test_rev');
}