From d9b87f4821c852b3081bb765f7cc5b7d857f4975 Mon Sep 17 00:00:00 2001 From: Lukas von Blarer Date: Thu, 9 Nov 2023 08:53:31 +0100 Subject: [PATCH] Fixing Drupal 10 compatibility issues --- graphql_views.info.yml | 3 +-- tests/modules/graphql_views_test/graphql_views_test.info.yml | 3 +-- tests/src/Kernel/ContextualViewsTest.php | 2 +- tests/src/Kernel/ViewsTestBase.php | 4 ++-- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/graphql_views.info.yml b/graphql_views.info.yml index 9364b5d..85eb6db 100644 --- a/graphql_views.info.yml +++ b/graphql_views.info.yml @@ -2,8 +2,7 @@ name: GraphQL Views type: module description: 'Adds support for views.' package: GraphQL -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 dependencies: - graphql:graphql_core - drupal:views diff --git a/tests/modules/graphql_views_test/graphql_views_test.info.yml b/tests/modules/graphql_views_test/graphql_views_test.info.yml index 552dca4..0d4955f 100644 --- a/tests/modules/graphql_views_test/graphql_views_test.info.yml +++ b/tests/modules/graphql_views_test/graphql_views_test.info.yml @@ -1,8 +1,7 @@ name: 'GraphQL Views Test' description: 'Test configurations for GraphQL views integration.' type: module -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 dependencies: - graphql_views - graphql_content_test diff --git a/tests/src/Kernel/ContextualViewsTest.php b/tests/src/Kernel/ContextualViewsTest.php index 87fdf5e..90f8f00 100644 --- a/tests/src/Kernel/ContextualViewsTest.php +++ b/tests/src/Kernel/ContextualViewsTest.php @@ -14,7 +14,7 @@ class ContextualViewsTest extends ViewsTestBase { /** * {@inheritdoc} */ - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->createContentType(['type' => 'test2']); } diff --git a/tests/src/Kernel/ViewsTestBase.php b/tests/src/Kernel/ViewsTestBase.php index ca35782..59e9464 100644 --- a/tests/src/Kernel/ViewsTestBase.php +++ b/tests/src/Kernel/ViewsTestBase.php @@ -22,7 +22,7 @@ abstract class ViewsTestBase extends GraphQLContentTestBase { /** * {@inheritdoc} */ - public static $modules = [ + protected static $modules = [ 'node', 'field', 'filter', @@ -44,7 +44,7 @@ abstract class ViewsTestBase extends GraphQLContentTestBase { /** * {@inheritdoc} */ - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->installEntitySchema('view'); $this->installEntitySchema('taxonomy_term');