You are here

protected function DrupalKernelTest::prepareConfigDirectories in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/DrupalKernel/DrupalKernelTest.php \Drupal\system\Tests\DrupalKernel\DrupalKernelTest::prepareConfigDirectories()

Create and set new configuration directories.

Throws

\RuntimeException Thrown when CONFIG_SYNC_DIRECTORY cannot be created or made writable.

Overrides KernelTestBase::prepareConfigDirectories

See also

config_get_config_directory()

1 call to DrupalKernelTest::prepareConfigDirectories()
DrupalKernelTest::setUp in core/modules/system/src/Tests/DrupalKernel/DrupalKernelTest.php
Performs setup tasks before each individual test method is run.

File

core/modules/system/src/Tests/DrupalKernel/DrupalKernelTest.php, line 41
Contains \Drupal\system\Tests\DrupalKernel\DrupalKernelTest.

Class

DrupalKernelTest
Tests DIC compilation to disk.

Namespace

Drupal\system\Tests\DrupalKernel

Code

protected function prepareConfigDirectories() {
  \Drupal::setContainer($this->originalContainer);
  parent::prepareConfigDirectories();
  \Drupal::unsetContainer();
}