You are here

protected function ContentEntityChangedTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Entity/ContentEntityChangedTest.php \Drupal\system\Tests\Entity\ContentEntityChangedTest::setUp()

@inheritdoc

Overrides EntityUnitTestBase::setUp

File

core/modules/system/src/Tests/Entity/ContentEntityChangedTest.php, line 45
Contains \Drupal\system\Tests\Entity\ContentEntityChangedTest.

Class

ContentEntityChangedTest
Tests basic EntityChangedInterface functionality.

Namespace

Drupal\system\Tests\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->entityManager
    ->getStorage('entity_test_mul_changed');
  $this->mulRevChangedStorage = $this->entityManager
    ->getStorage('entity_test_mulrev_changed');
}