Skip to content

Commit 764f994

Browse files
author
Luis
committed
Testing: Add compatibility to drupal 10
1 parent c6c4b62 commit 764f994

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

modules/graphql_core/tests/src/Kernel/Blocks/BlockTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class BlockTest extends GraphQLCoreTestBase {
3333
/**
3434
* {@inheritdoc}
3535
*/
36-
protected function setUp() {
36+
protected function setUp(): void {
3737
parent::setUp();
3838

3939
/** @var \Drupal\Core\Extension\ThemeInstallerInterface $themeInstaller */
@@ -43,7 +43,8 @@ protected function setUp() {
4343
$this->installEntitySchema('block_content');
4444
try {
4545
$this->installEntitySchema('path_alias');
46-
} catch (PluginNotFoundException $exc) {
46+
}
47+
catch (PluginNotFoundException $exc) {
4748
// Ignore if the path_alias entity doesn't exist. This means we are
4849
// testing a Drupal version < 8.8 and aliases are not entities yet.
4950
}
@@ -76,7 +77,7 @@ public function testStaticBlocks() {
7677
$metadata = $this->defaultCacheMetaData();
7778
$metadata->addCacheTags([
7879
'block_content:1',
79-
// TODO: Check metatags. Is the config metatag required?
80+
// @todo Check metatags. Is the config metatag required?
8081
'config:block.block.stark_powered',
8182
]);
8283

@@ -98,4 +99,5 @@ public function testStaticBlocks() {
9899
],
99100
], $metadata);
100101
}
102+
101103
}

0 commit comments

Comments
 (0)