function TestBase::config
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\simpletestCode
protected function config($name) {
return \Drupal::configFactory()->getEditable($name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.