You are here

protected function BrowserTestBase::config in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::config()
  2. 10 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.

70 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
Tests 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
Tests that cache tags are properly set and bubbled up to the page cache.

... See full list

File

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

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);
}