protected function FieldUpdateTest::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/ field/ tests/ src/ Functional/ Update/ FieldUpdateTest.php, line 54
Class
- FieldUpdateTest
- Tests that field settings are properly updated during database updates.
Namespace
Drupal\Tests\field\Functional\UpdateCode
protected function setUp() {
parent::setUp();
$this->configFactory = $this->container
->get('config.factory');
$this->database = $this->container
->get('database');
$this->installedStorageSchema = $this->container
->get('keyvalue')
->get('entity.storage_schema.sql');
$this->state = $this->container
->get('state');
}