diff -u b/core/lib/Drupal/Core/Theme/ThemeInitialization.php b/core/lib/Drupal/Core/Theme/ThemeInitialization.php --- b/core/lib/Drupal/Core/Theme/ThemeInitialization.php +++ b/core/lib/Drupal/Core/Theme/ThemeInitialization.php @@ -70,8 +70,9 @@ // This is desired, because missing or malformed theme configuration should // not leave the application in a broken state. By falling back to default // output, the user is able to reconfigure the theme through the UI. - // In addition, kernel tests are expected to operate with no theme and only - // the original theme output of modules by default. + // Lastly, tests are expected to operate with no theme by default, so as to + // only assert the original theme output of modules (unless a test manually + // enables a specific theme). if (empty($themes) || !$theme_name || !isset($themes[$theme_name])) { $theme_name = 'core'; // /core/core.info.yml does not actually exist, but is required because only in patch2: unchanged: --- /dev/null +++ b/core/tests/Drupal/Tests/Core/Extension/DefaultConfigTest.php @@ -0,0 +1,42 @@ + array(), + 'theme' => array(), + 'disabled' => array( + 'theme' => array(), + ), + ); + $this->assertEquals($expected, $config); + } + +}