Skip to content

Commit

Permalink
Drop support for Drupal 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-teck committed Nov 2, 2023
1 parent 9d981b7 commit f00483d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/Generator/PhpStormMetaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
4 changes: 4 additions & 0 deletions tests/functional/Helper/Drupal/HookInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
12 changes: 6 additions & 6 deletions tests/functional/Helper/Drupal/ServiceInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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());
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit f00483d

Please sign in to comment.