Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
custom_markup_block
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
custom_markup_block
Commits
566d8649
Commit
566d8649
authored
5 years ago
by
Manuel Adán
Committed by
Manuel Adán
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
custom_markup_block.info.yml
+1
-0
1 addition, 0 deletions
custom_markup_block.info.yml
tests/src/Functional/CustomMarkupBlockTestBase.php
+16
-0
16 additions, 0 deletions
tests/src/Functional/CustomMarkupBlockTestBase.php
with
17 additions
and
0 deletions
custom_markup_block.info.yml
+
1
−
0
View file @
566d8649
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
tests/src/Functional/CustomMarkupBlockTestBase.php
+
16
−
0
View file @
566d8649
...
...
@@ -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
();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment