You are here

protected function KernelTestBase::config in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::config()

Configuration accessor for tests. Returns non-overridden configuration.

Parameters

string $name: The configuration name.

Return value

\Drupal\Core\Config\Config The configuration object with original configuration data.

1 call to KernelTestBase::config()
KernelTestBase::disableModules in core/tests/Drupal/KernelTests/KernelTestBase.php
Disables modules for this test.

File

core/tests/Drupal/KernelTests/KernelTestBase.php, line 385
Contains \Drupal\KernelTests\KernelTestBase.

Class

KernelTestBase
Base class for functional integration tests.

Namespace

Drupal\KernelTests

Code

protected function config($name) {
  return $this->container
    ->get('config.factory')
    ->getEditable($name);
}