You are here

protected function DefaultConfigTest::setUp in Zircon Profile 8

Same name in this branch
  1. 8 core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php \Drupal\KernelTests\Config\DefaultConfigTest::setUp()
  2. 8 core/modules/config/src/Tests/DefaultConfigTest.php \Drupal\config\Tests\DefaultConfigTest::setUp()
Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php \Drupal\KernelTests\Config\DefaultConfigTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php, line 38
Contains \Drupal\KernelTests\Config\DefaultConfigTest.

Class

DefaultConfigTest
Tests that the installed config matches the default config.

Namespace

Drupal\KernelTests\Config

Code

protected function setUp() {
  parent::setUp();

  // @todo ModuleInstaller calls system_rebuild_module_data which is part of
  //   system.module, see https://www.drupal.org/node/2208429.
  include_once $this->root . '/core/modules/system/system.module';

  // Set up the state values so we know where to find the files when running
  // drupal_get_filename().
  // @todo Remove as part of https://www.drupal.org/node/2186491
  system_rebuild_module_data();
  $this
    ->installSchema('system', 'router');
}