You are here

protected function TestBase::config in Drupal 8

Configuration accessor for tests. Returns non-overridden configuration.

Parameters

$name: Configuration name.

Return value

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

4 calls to TestBase::config()
KernelTestBase::disableModules in core/modules/simpletest/src/KernelTestBase.php
Disables modules for this test.
PageCacheTagsTestBase::setUp in core/modules/system/src/Tests/Cache/PageCacheTagsTestBase.php
Sets up a Drupal site for running functional and integration tests.
TestBase::run in core/modules/simpletest/src/TestBase.php
Run all tests in this class.
UpdatePathTestBase::runUpdates in core/modules/system/src/Tests/Update/UpdatePathTestBase.php
Helper function to run pending database updates.

File

core/modules/simpletest/src/TestBase.php, line 1395

Class

TestBase
Base class for Drupal tests.

Namespace

Drupal\simpletest

Code

protected function config($name) {
  return \Drupal::configFactory()
    ->getEditable($name);
}