function SqlContentEntityStorageSchemaConverterTestBase::setUp

Overrides UpdatePathTestBase::setUp

File

core/modules/system/tests/src/Functional/Entity/Update/SqlContentEntityStorageSchemaConverterTestBase.php, line 48

Class

SqlContentEntityStorageSchemaConverterTestBase
Defines a class for testing the conversion of entity types to revisionable.

Namespace

Drupal\Tests\system\Functional\Entity\Update

Code

protected function setUp() {
    parent::setUp();
    $this->entityDefinitionUpdateManager = \Drupal::entityDefinitionUpdateManager();
    $this->lastInstalledSchemaRepository = \Drupal::service('entity.last_installed_schema.repository');
    $this->installedStorageSchema = \Drupal::keyValue('entity.storage_schema.sql');
    $this->state = \Drupal::state();
}

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