function BrowserTestBase::config

Same name in other branches
  1. 9 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::config()
  2. 10 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::config()
  3. 11.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::config()

Configuration accessor for tests. Returns non-overridden configuration.

Parameters

string $name: Configuration name.

Return value

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

80 calls to BrowserTestBase::config()
ActionConfigTest::testUpdateActionPlugins in core/modules/action/tests/src/Functional/Update/ActionConfigTest.php
Tests upgrading action settings.
AjaxFormPageCacheTest::setUp in core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormPageCacheTest.php
BasicAuthTest::testBasicAuth in core/modules/basic_auth/tests/src/Functional/BasicAuthTest.php
Test http basic authentication.
BlockContentTypeTest::testsBlockContentAddTypes in core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
Tests that redirects work as expected when multiple block types exist.
BlockTest::testBlockCacheTags in core/modules/block/tests/src/Functional/BlockTest.php
Test that cache tags are properly set and bubbled up to the page cache.

... See full list

File

core/tests/Drupal/Tests/BrowserTestBase.php, line 648

Class

BrowserTestBase
Provides a test case for functional Drupal tests.

Namespace

Drupal\Tests

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.