diff --git a/core/modules/block/src/Tests/BlockSystemBrandingTest.php b/core/modules/block/src/Tests/BlockSystemBrandingTest.php index 82cff41..679bb12 100644 --- a/core/modules/block/src/Tests/BlockSystemBrandingTest.php +++ b/core/modules/block/src/Tests/BlockSystemBrandingTest.php @@ -31,16 +31,16 @@ protected function setUp() { ->set('slogan', 'Community plumbing') ->save(); // Add the system branding block to the page. - $this->drupalPlaceBlock('system_branding_block', array('region' => 'header', 'id' => 'site-branding')); + $this->drupalPlaceBlock('system_branding_block', array('region' => 'header')); } /** * Tests system branding block configuration. */ public function testSystemBrandingSettings() { - $site_logo_xpath = '//div[@id="block-site-branding"]//a[@class="site-logo"]'; - $site_name_xpath = '//div[@id="block-site-branding"]//div[@class="site-name"]'; - $site_slogan_xpath = '//div[@id="block-site-branding"]//div[@class="site-slogan"]'; + $site_logo_xpath = '//div//a[@class="site-logo"]'; + $site_name_xpath = '//div//div[@class="site-name"]'; + $site_slogan_xpath = '//div//div[@class="site-slogan"]'; // Set default block settings. $this->drupalGet(''); diff --git a/core/modules/block/src/Tests/BlockViewBuilderTest.php b/core/modules/block/src/Tests/BlockViewBuilderTest.php index bd2a986..d148ddd 100644 --- a/core/modules/block/src/Tests/BlockViewBuilderTest.php +++ b/core/modules/block/src/Tests/BlockViewBuilderTest.php @@ -83,7 +83,7 @@ public function testBasicRendering() { $entity = Block::load('test_block1'); $output = entity_view($entity, 'block'); $expected = array(); - $expected[] = '
'; + $expected[] = '
'; $expected[] = ' '; $expected[] = ' '; $expected[] = ' '; @@ -107,7 +107,7 @@ public function testBasicRendering() { $entity->save(); $output = entity_view($entity, 'block'); $expected = array(); - $expected[] = '
'; + $expected[] = '
'; $expected[] = ' '; $expected[] = '

Powered by Bananas

'; $expected[] = ' '; diff --git a/core/modules/block/templates/block-list.html.twig b/core/modules/block/templates/block-list.html.twig index 854d3ce..bd3c6f7 100644 --- a/core/modules/block/templates/block-list.html.twig +++ b/core/modules/block/templates/block-list.html.twig @@ -13,11 +13,11 @@ * @ingroup themeable */ #} -
-
+
+
{{ form|without('place_blocks') }}
-
+
{{ form.place_blocks }}
diff --git a/core/modules/block/templates/block.html.twig b/core/modules/block/templates/block.html.twig index aa750cb..b7a3ff7 100644 --- a/core/modules/block/templates/block.html.twig +++ b/core/modules/block/templates/block.html.twig @@ -34,13 +34,7 @@ * @ingroup themeable */ #} -{% - set classes = [ - 'block', - 'block-' ~ configuration.provider|clean_class, - ] -%} - +
{{ title_prefix }} {% if label %} {{ label }} diff --git a/core/modules/simpletest/src/KernelTestBase.php b/core/modules/simpletest/src/KernelTestBase.php index d2c5341..71be969 100644 --- a/core/modules/simpletest/src/KernelTestBase.php +++ b/core/modules/simpletest/src/KernelTestBase.php @@ -211,11 +211,6 @@ protected function setUp() { if ($modules) { $this->enableModules($modules); } - // In order to use theme functions default theme config needs to exist. This - // configuration is not saved because it would fatal due to system module's - // configuration schema not existing. However since the configuration is - // cached in the configuration factory everything works. - $this->config('system.theme')->set('default', 'classy'); // Tests based on this class are entitled to use Drupal's File and // StreamWrapper APIs. diff --git a/core/modules/block/templates/block-list.html.twig b/core/themes/classy/templates/block-list.html.twig similarity index 100% copy from core/modules/block/templates/block-list.html.twig copy to core/themes/classy/templates/block-list.html.twig diff --git a/core/modules/block/templates/block.html.twig b/core/themes/classy/templates/block.html.twig similarity index 100% copy from core/modules/block/templates/block.html.twig copy to core/themes/classy/templates/block.html.twig