From f00483dc8cc923c359a2941125c59cfdb1c04d6b Mon Sep 17 00:00:00 2001 From: Chi-teck Date: Thu, 2 Nov 2023 10:55:55 +0000 Subject: [PATCH] Drop support for Drupal 10.0 --- composer.json | 2 +- tests/functional/Generator/PhpStormMetaTest.php | 4 ++-- tests/functional/Helper/Drupal/HookInfoTest.php | 4 ++++ tests/functional/Helper/Drupal/ServiceInfoTest.php | 12 ++++++------ 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 2aafc891b..ef562ab52 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,7 @@ "ext-simplexml": "*", "chi-teck/drupal-coder-extension": "^2.0.0-alpha4", "drupal/coder": "8.3.22", - "drupal/core": "10.1.x-dev", + "drupal/core": "10.2.x-dev", "phpspec/prophecy-phpunit": "^2.0", "phpunit/phpunit": "^9.5", "squizlabs/php_codesniffer": "^3.7", diff --git a/tests/functional/Generator/PhpStormMetaTest.php b/tests/functional/Generator/PhpStormMetaTest.php index 4dcba8df0..6f23ec0e0 100644 --- a/tests/functional/Generator/PhpStormMetaTest.php +++ b/tests/functional/Generator/PhpStormMetaTest.php @@ -16,8 +16,8 @@ final class PhpStormMetaTest extends GeneratorTestBase { * Test callback. */ public function testGenerator(): void { - // @todo Remove this once we drop support form Drupal 10.0. - if (\str_starts_with(\getenv('DCG_DRUPAL_VERSION') ?: '', '10.0')) { + // @todo Remove this once we drop support form Drupal 10.1`. + if (\str_starts_with(\getenv('DCG_DRUPAL_VERSION') ?: '', '10.1')) { self::markTestSkipped(); } diff --git a/tests/functional/Helper/Drupal/HookInfoTest.php b/tests/functional/Helper/Drupal/HookInfoTest.php index abb9cb1f0..7930d60fc 100644 --- a/tests/functional/Helper/Drupal/HookInfoTest.php +++ b/tests/functional/Helper/Drupal/HookInfoTest.php @@ -24,6 +24,10 @@ public function testHelper(): void { * Test callback. */ public function testHookInfoTemplates(): void { + // @todo Remove this once we drop support form Drupal 10.1`. + if (\str_starts_with(\getenv('DCG_DRUPAL_VERSION') ?: '', '10.1')) { + self::markTestSkipped(); + } $hook_info = new HookInfo(self::bootstrap()->get('module_handler')); $hook_templates = $hook_info->getHookTemplates(); self::assertCount(260, $hook_templates); diff --git a/tests/functional/Helper/Drupal/ServiceInfoTest.php b/tests/functional/Helper/Drupal/ServiceInfoTest.php index bd91c314b..5cbf4d4f6 100644 --- a/tests/functional/Helper/Drupal/ServiceInfoTest.php +++ b/tests/functional/Helper/Drupal/ServiceInfoTest.php @@ -31,8 +31,8 @@ public function testGetService(): void { * Test callback. */ public function testGetServicesIds(): void { - // @todo Remove this once we drop support form Drupal 10.0. - if (\str_starts_with(\getenv('DCG_DRUPAL_VERSION') ?: '', '10.0')) { + // @todo Remove this once we drop support form Drupal 10.1 + if (\str_starts_with(\getenv('DCG_DRUPAL_VERSION') ?: '', '10.1')) { self::markTestSkipped(); } $service_info = new ServiceInfo(self::bootstrap()); @@ -57,8 +57,8 @@ public function testGetServicesIds(): void { * Test callback. */ public function testGetServiceDefinitions(): void { - // @todo Remove this once we drop support form Drupal 10.0. - if (\str_starts_with(\getenv('DCG_DRUPAL_VERSION') ?: '', '10.0')) { + // @todo Remove this once we drop support form Drupal 10.1. + if (\str_starts_with(\getenv('DCG_DRUPAL_VERSION') ?: '', '10.1')) { self::markTestSkipped(); } $service_info = new ServiceInfo(self::bootstrap()); @@ -102,8 +102,8 @@ public function testGetServiceDefinitions(): void { * Test callback. */ public function testGetServiceClasses(): void { - // @todo Remove this once we drop support form Drupal 10.0. - if (\str_starts_with(\getenv('DCG_DRUPAL_VERSION') ?: '', '10.0')) { + // @todo Remove this once we drop support form Drupal 10.1. + if (\str_starts_with(\getenv('DCG_DRUPAL_VERSION') ?: '', '10.1')) { self::markTestSkipped(); } $service_info = new ServiceInfo(self::bootstrap());