diff -u b/core/modules/block/src/Tests/BlockViewBuilderTest.php b/core/modules/block/src/Tests/BlockViewBuilderTest.php --- b/core/modules/block/src/Tests/BlockViewBuilderTest.php +++ b/core/modules/block/src/Tests/BlockViewBuilderTest.php @@ -58,7 +58,7 @@ // Create a block with only required values. $this->block = $this->controller->create(array( 'id' => 'test_block', - 'theme' => 'classy', + 'theme' => 'stark', 'plugin' => 'test_cache', )); $this->block->save(); @@ -74,7 +74,7 @@ $entity = $this->controller->create(array( 'id' => 'test_block1', - 'theme' => 'classy', + 'theme' => 'stark', 'plugin' => 'test_html', )); $entity->save(); @@ -83,7 +83,7 @@ $entity = Block::load('test_block1'); $output = entity_view($entity, 'block'); $expected = array(); - $expected[] = '
'; + $expected[] = '
'; $expected[] = ' '; $expected[] = ' '; $expected[] = ' '; @@ -98,7 +98,7 @@ // Test the rendering of a block with a given title. $entity = $this->controller->create(array( 'id' => 'test_block2', - 'theme' => 'classy', + 'theme' => 'stark', 'plugin' => 'test_html', 'settings' => array( 'label' => 'Powered by Bananas', @@ -107,7 +107,7 @@ $entity->save(); $output = entity_view($entity, 'block'); $expected = array(); - $expected[] = '
'; + $expected[] = '
'; $expected[] = ' '; $expected[] = '

Powered by Bananas

'; $expected[] = ' '; @@ -128,7 +128,7 @@ // Create an empty block. $this->block = $this->controller->create(array( 'id' => 'test_block', - 'theme' => 'classy', + 'theme' => 'stark', 'plugin' => 'test_cache', )); $this->block->save(); diff -u b/core/modules/simpletest/src/KernelTestBase.php b/core/modules/simpletest/src/KernelTestBase.php --- b/core/modules/simpletest/src/KernelTestBase.php +++ b/core/modules/simpletest/src/KernelTestBase.php @@ -211,12 +211,6 @@ if ($modules) { $this->enableModules($modules); } - // In order to use theme functions default theme config needs to exist. The - // configuration system.theme is not saved through the factory because it - // would fatal due to system module's configuration schema not existing. - $this->container->get('config.storage') - ->write('system.theme', ['admin' => '', 'default' => 'classy']); - $this->config('core.extension')->set('theme.classy', 0)->save(); // Tests based on this class are entitled to use Drupal's File and // StreamWrapper APIs.