You are here

protected function TestBase::settingsSet in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/TestBase.php \Drupal\simpletest\TestBase::settingsSet()

Changes in memory settings.

Parameters

$name: The name of the setting to return.

$value: The value of the setting.

See also

\Drupal\Core\Site\Settings::get()

11 calls to TestBase::settingsSet()
DirectoryTest::testFileCheckDirectoryHandling in core/modules/system/src/Tests/File/DirectoryTest.php
Test directory handling functions.
DownloadTest::testFileCreateUrl in core/modules/file/src/Tests/DownloadTest.php
Test file_create_url().
DrupalKernelSiteTest::testServicesYml in core/modules/system/src/Tests/DrupalKernel/DrupalKernelSiteTest.php
Tests services.yml in site directory.
DrupalKernelTest::getTestKernel in core/modules/system/src/Tests/DrupalKernel/DrupalKernelTest.php
Build a kernel for testings.
DrupalKernelTest::setUp in core/modules/system/src/Tests/DrupalKernel/DrupalKernelTest.php
Performs setup tasks before each individual test method is run.

... See full list

File

core/modules/simpletest/src/TestBase.php, line 1496
Contains \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);
}