function MaintenanceThemeUpdateRegistryTest::prepareSettings

Same name in other branches
  1. 10 core/modules/system/tests/src/Functional/Theme/MaintenanceThemeUpdateRegistryTest.php \Drupal\Tests\system\Functional\Theme\MaintenanceThemeUpdateRegistryTest::prepareSettings()
  2. 11.x core/modules/system/tests/src/Functional/Theme/MaintenanceThemeUpdateRegistryTest.php \Drupal\Tests\system\Functional\Theme\MaintenanceThemeUpdateRegistryTest::prepareSettings()

Overrides FunctionalTestSetupTrait::prepareSettings

File

core/modules/system/tests/src/Functional/Theme/MaintenanceThemeUpdateRegistryTest.php, line 25

Class

MaintenanceThemeUpdateRegistryTest
Ensures theme update functions are registered for maintenance themes.

Namespace

Drupal\Tests\system\Functional\Theme

Code

protected function prepareSettings() {
    parent::prepareSettings();
    $this->writeSettings([
        'settings' => [
            'maintenance_theme' => (object) [
                'value' => 'test_theme_updates',
                'required' => TRUE,
            ],
        ],
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.