You are here

protected function ModuleHandlerTest::setUp in Zircon Profile 8

Same name in this branch
  1. 8 core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php \Drupal\Tests\Core\Extension\ModuleHandlerTest::setUp()
  2. 8 core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php \Drupal\Tests\system\Kernel\Extension\ModuleHandlerTest::setUp()
Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php \Drupal\Tests\system\Kernel\Extension\ModuleHandlerTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php, line 29
Contains \Drupal\system\Tests\Extension\ModuleHandlerTest.

Class

ModuleHandlerTest
Tests ModuleHandler functionality.

Namespace

Drupal\Tests\system\Kernel\Extension

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