You are here

protected function ContentTranslationUpdateTest::setUp in Drupal 8

Overrides WebTestBase::setUp() for update testing.

The main difference in this method is that rather than performing the installation via the installer, a database is loaded. Additional work is then needed to set various things such as the config directories and the container that would normally be done via the installer.

Overrides UpdatePathTestBase::setUp

File

core/modules/content_translation/tests/src/Functional/Update/ContentTranslationUpdateTest.php, line 43

Class

ContentTranslationUpdateTest
Tests the upgrade path for the Content Translation module.

Namespace

Drupal\Tests\content_translation\Functional\Update

Code

protected function setUp() {
  parent::setUp();
  $this->database = \Drupal::database();
  $this->entityDefinitionUpdateManager = \Drupal::entityDefinitionUpdateManager();
  $this->state = \Drupal::state();
}