protected function TestBase::settingsSet

Changes in memory settings.

Parameters

$name: The name of the setting to return.

$value: The value of the setting.

See also

\Drupal\Component\Utility\Settings::get()

10 calls to TestBase::settingsSet()
DrupalKernelTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/DrupalKernel/DrupalKernelTest.php
Sets up unit test environment.
DrupalUnitTestBase::containerBuild in drupal/core/modules/simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php
Sets up the base service container for this test.
LanguageUILanguageNegotiationTest::testLanguageDomain in drupal/core/modules/language/lib/Drupal/language/Tests/LanguageUILanguageNegotiationTest.php
Tests url() when separate domains are used for multiple languages.
SessionHttpsTest::testHttpsSession in drupal/core/modules/system/lib/Drupal/system/Tests/Session/SessionHttpsTest.php
SessionTest::testSessionWrite in drupal/core/modules/system/lib/Drupal/system/Tests/Session/SessionTest.php
Test that sessions are only saved when necessary.

... See full list

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php, line 1148
Definition of Drupal\simpletest\TestBase.

Class

TestBase
Base class for Drupal tests.

Namespace

Drupal\simpletest

Code

protected function settingsSet($name, $value) {
  $settings = settings()
    ->getAll();
  $settings[$name] = $value;
  new Settings($settings);
}