You are here

protected function ContentEntityChangedTest::setUp in Drupal 8

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

Overrides EntityKernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Entity/ContentEntityChangedTest.php, line 48

Class

ContentEntityChangedTest
Tests basic EntityChangedInterface functionality.

Namespace

Drupal\KernelTests\Core\Entity

Code

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

  // Enable an additional language.
  ConfigurableLanguage::createFromLangcode('de')
    ->save();
  ConfigurableLanguage::createFromLangcode('fr')
    ->save();
  $this
    ->installEntitySchema('entity_test_mul_changed');
  $this
    ->installEntitySchema('entity_test_mulrev_changed');
  $this->mulChangedStorage = $this->entityTypeManager
    ->getStorage('entity_test_mul_changed');
  $this->mulRevChangedStorage = $this->entityTypeManager
    ->getStorage('entity_test_mulrev_changed');
}