You are here

protected function FieldUpdateTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field/src/Tests/Update/FieldUpdateTest.php \Drupal\field\Tests\Update\FieldUpdateTest::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/field/src/Tests/Update/FieldUpdateTest.php, line 32
Contains \Drupal\field\Tests\Update\FieldUpdateTest.

Class

FieldUpdateTest
Tests that field settings are properly updated during database updates.

Namespace

Drupal\field\Tests\Update

Code

protected function setUp() {
  parent::setUp();
  $this->configFactory = $this->container
    ->get('config.factory');
}