Skip to content
Snippets Groups Projects
Commit 566d8649 authored by Manuel Adán's avatar Manuel Adán Committed by Manuel Adán
Browse files

Issue #3116999 by manuel.adan, Sahana _N: Drupal 9 compatibility

parent 2b2c3746
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ name: Custom Markup Block
type: module
description: A custom markup block allows adding any markup to a block which gets saved to config.
core: 8.x
core_version_requirement: ^8 || ^9
package: Other
version: 8.x-1.0
dependencies:
......
......@@ -9,6 +9,11 @@ use Drupal\Tests\block\Functional\BlockTestBase;
*/
abstract class CustomMarkupBlockTestBase extends BlockTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Modules to enable.
*
......@@ -18,4 +23,15 @@ abstract class CustomMarkupBlockTestBase extends BlockTestBase {
'custom_markup_block',
];
/**
* {@inheritdoc}
*/
protected function setUp() {
if (version_compare(\Drupal::VERSION, '9', '<')) {
$this->defaultTheme = 'classy';
}
parent::setUp();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment