function EntityUpdateAddRevisionTranslationAffectedTest::setUp

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/system/tests/src/Functional/Update/EntityUpdateAddRevisionTranslationAffectedTest.php, line 41

Class

EntityUpdateAddRevisionTranslationAffectedTest
Tests the upgrade path for adding the 'revision_translation_affected' field.

Namespace

Drupal\Tests\system\Functional\Update

Code

protected function setUp() {
    parent::setUp();
    // Do not use this property after calling ::runUpdates().
    $this->state = \Drupal::state();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.