protected function SqlContentEntityStorageSchemaConverterTestBase::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/ 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\UpdateCode
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();
}