protected function SecurityAdvisoryTest::writeSettings in Drupal 9
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
File
- core/
modules/ system/ tests/ src/ Functional/ SecurityAdvisories/ SecurityAdvisoryTest.php, line 106
Class
- SecurityAdvisoryTest
- Tests of security advisories functionality.
Namespace
Drupal\Tests\system\Functional\SecurityAdvisoriesCode
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);
}