function ConfigImportTest::setUp

Sets up Drupal unit test environment.

Overrides DrupalUnitTestBase::setUp

See also

DrupalUnitTestBase::$modules

DrupalUnitTestBase

File

drupal/core/modules/config/lib/Drupal/config/Tests/ConfigImportTest.php, line 32
Definition of Drupal\config\Tests\ConfigImportTest.

Class

ConfigImportTest
Tests importing configuration from files into active configuration.

Namespace

Drupal\config\Tests

Code

function setUp() {
  parent::setUp();
  config_install_default_config('module', 'config_test');

  // Installing config_test's default configuration pollutes the global
  // variable being used for recording hook invocations by this test already,
  // so it has to be cleared out manually.
  unset($GLOBALS['hook_config_test']);
}