You are here

protected function SecurityAdvisoryTest::writeSettings in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/SecurityAdvisories/SecurityAdvisoryTest.php \Drupal\Tests\system\Functional\SecurityAdvisories\SecurityAdvisoryTest::writeSettings()

Rewrites the settings.php file of the test site.

Parameters

array $settings: An array of settings to write out, in the format expected by drupal_rewrite_settings().

Overrides FunctionalTestSetupTrait::writeSettings

See also

drupal_rewrite_settings()

File

core/modules/system/tests/src/Functional/SecurityAdvisories/SecurityAdvisoryTest.php, line 106

Class

SecurityAdvisoryTest
Tests of security advisories functionality.

Namespace

Drupal\Tests\system\Functional\SecurityAdvisories

Code

protected function writeSettings(array $settings) : void {

  // Unset 'system.advisories' to allow testing enabling and disabling this
  // setting.
  unset($settings['config']['system.advisories']);
  parent::writeSettings($settings);
}