Loading core/modules/block/tests/src/Functional/BlockCacheTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class BlockCacheTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'classy'; protected $defaultTheme = 'stark'; /** * A user with permission to create and edit books and to administer blocks. Loading core/modules/block/tests/src/Functional/BlockDemoTest.php +1 −2 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ class BlockDemoTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'classy'; protected $defaultTheme = 'stark'; /** * Check for the accessibility of the admin block demo page. Loading @@ -45,7 +45,6 @@ public function testBlockDemo() { // All available themes in core. $available_themes = [ 'bartik', 'classy', 'olivero', 'seven', 'stark', Loading core/modules/block/tests/src/Functional/BlockFormInBlockTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class BlockFormInBlockTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'classy'; protected $defaultTheme = 'stark'; /** * {@inheritdoc} Loading core/modules/block/tests/src/Functional/BlockHiddenRegionTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ class BlockHiddenRegionTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'classy'; protected $defaultTheme = 'stark'; protected function setUp(): void { parent::setUp(); Loading core/modules/block/tests/src/Functional/BlockHtmlTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ class BlockHtmlTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'classy'; protected $defaultTheme = 'stark'; protected function setUp(): void { parent::setUp(); Loading @@ -34,7 +34,7 @@ protected function setUp(): void { $this->drupalPlaceBlock('test_html', ['id' => 'test_html_block']); // Enable a menu block, to test more complicated HTML. $this->drupalPlaceBlock('system_menu_block:admin'); $this->drupalPlaceBlock('system_menu_block:admin', ['id' => 'test_menu_block']); } /** Loading @@ -48,7 +48,7 @@ public function testHtml() { $this->assertSession()->elementExists('xpath', '//div[@id="block-test-html-block" and @data-custom-attribute="foo"]'); // Ensure expected markup for a menu block. $elements = $this->xpath('//nav[contains(@class, :nav-class)]/ul[contains(@class, :ul-class)]/li', [':nav-class' => 'block-menu', ':ul-class' => 'menu']); $elements = $this->xpath('//nav[@id="block-test-menu-block"]/ul/li'); $this->assertNotEmpty($elements, 'The proper block markup was found.'); } Loading Loading
core/modules/block/tests/src/Functional/BlockCacheTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class BlockCacheTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'classy'; protected $defaultTheme = 'stark'; /** * A user with permission to create and edit books and to administer blocks. Loading
core/modules/block/tests/src/Functional/BlockDemoTest.php +1 −2 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ class BlockDemoTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'classy'; protected $defaultTheme = 'stark'; /** * Check for the accessibility of the admin block demo page. Loading @@ -45,7 +45,6 @@ public function testBlockDemo() { // All available themes in core. $available_themes = [ 'bartik', 'classy', 'olivero', 'seven', 'stark', Loading
core/modules/block/tests/src/Functional/BlockFormInBlockTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class BlockFormInBlockTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'classy'; protected $defaultTheme = 'stark'; /** * {@inheritdoc} Loading
core/modules/block/tests/src/Functional/BlockHiddenRegionTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ class BlockHiddenRegionTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'classy'; protected $defaultTheme = 'stark'; protected function setUp(): void { parent::setUp(); Loading
core/modules/block/tests/src/Functional/BlockHtmlTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ class BlockHtmlTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'classy'; protected $defaultTheme = 'stark'; protected function setUp(): void { parent::setUp(); Loading @@ -34,7 +34,7 @@ protected function setUp(): void { $this->drupalPlaceBlock('test_html', ['id' => 'test_html_block']); // Enable a menu block, to test more complicated HTML. $this->drupalPlaceBlock('system_menu_block:admin'); $this->drupalPlaceBlock('system_menu_block:admin', ['id' => 'test_menu_block']); } /** Loading @@ -48,7 +48,7 @@ public function testHtml() { $this->assertSession()->elementExists('xpath', '//div[@id="block-test-html-block" and @data-custom-attribute="foo"]'); // Ensure expected markup for a menu block. $elements = $this->xpath('//nav[contains(@class, :nav-class)]/ul[contains(@class, :ul-class)]/li', [':nav-class' => 'block-menu', ':ul-class' => 'menu']); $elements = $this->xpath('//nav[@id="block-test-menu-block"]/ul/li'); $this->assertNotEmpty($elements, 'The proper block markup was found.'); } Loading