protected function TestBase::config in SimpleTest 8.3
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.
2 calls to TestBase::config()
- KernelTestBase::disableModules in src/
KernelTestBase.php - Disables modules for this test.
- TestBase::run in src/
TestBase.php - Run all tests in this class.
File
- src/
TestBase.php, line 1395
Class
- TestBase
- Base class for Drupal tests.
Namespace
Drupal\simpletestCode
protected function config($name) {
return \Drupal::configFactory()
->getEditable($name);
}