You are here

protected function TaxonomyParentUpdateTest::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/taxonomy/tests/src/Functional/Update/TaxonomyParentUpdateTest.php, line 27

Class

TaxonomyParentUpdateTest
Ensure that the taxonomy updates are running as expected.

Namespace

Drupal\Tests\taxonomy\Functional\Update

Code

protected function setUp() {
  parent::setUp();
  $this->db = $this->container
    ->get('database');
}