protected function TestBase::config in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/src/TestBase.php \Drupal\simpletest\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.
123 calls to TestBase::config()
- AjaxFormPageCacheTest::setUp in core/
modules/ system/ src/ Tests/ Ajax/ AjaxFormPageCacheTest.php - Sets up a Drupal site for running functional and integration tests.
- BasicAuthTest::testBasicAuth in core/
modules/ basic_auth/ src/ Tests/ Authentication/ BasicAuthTest.php - Test http basic authentication.
- BlockConfigSchemaTest::testBlockConfigSchema in core/
modules/ block/ src/ Tests/ BlockConfigSchemaTest.php - Tests the block config schema for block plugins.
- BlockContentTypeTest::testsBlockContentAddTypes in core/
modules/ block_content/ src/ Tests/ BlockContentTypeTest.php - Tests that redirects work as expected when multiple block types exist.
- BlockTest::testBlockCacheTags in core/
modules/ block/ src/ Tests/ BlockTest.php - Test that cache tags are properly set and bubbled up to the page cache.
File
- core/
modules/ simpletest/ src/ TestBase.php, line 1616 - Contains \Drupal\simpletest\TestBase.
Class
- TestBase
- Base class for Drupal tests.
Namespace
Drupal\simpletestCode
protected function config($name) {
return \Drupal::configFactory()
->getEditable($name);
}