function FieldUpdateTest::setUp

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\Update

Code

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');
}

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