Skip to content

Commit

Permalink
Testing: Add compatibility to drupal 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis committed Sep 7, 2023
1 parent c6c4b62 commit 764f994
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/graphql_core/tests/src/Kernel/Blocks/BlockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BlockTest extends GraphQLCoreTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();

/** @var \Drupal\Core\Extension\ThemeInstallerInterface $themeInstaller */
Expand All @@ -43,7 +43,8 @@ protected function setUp() {
$this->installEntitySchema('block_content');
try {
$this->installEntitySchema('path_alias');
} catch (PluginNotFoundException $exc) {
}
catch (PluginNotFoundException $exc) {
// Ignore if the path_alias entity doesn't exist. This means we are
// testing a Drupal version < 8.8 and aliases are not entities yet.
}
Expand Down Expand Up @@ -76,7 +77,7 @@ public function testStaticBlocks() {
$metadata = $this->defaultCacheMetaData();
$metadata->addCacheTags([
'block_content:1',
// TODO: Check metatags. Is the config metatag required?
// @todo Check metatags. Is the config metatag required?
'config:block.block.stark_powered',
]);

Expand All @@ -98,4 +99,5 @@ public function testStaticBlocks() {
],
], $metadata);
}

}

0 comments on commit 764f994

Please sign in to comment.