Skip to content

Commit c9f11c2

Browse files
Boegiemglaman
andauthored
Switch testing against 10.1.x-dev to 11.x-dev branch (#565)
Co-authored-by: Matt Glaman <[email protected]>
1 parent 5deba0b commit c9f11c2

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

.github/workflows/php.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ jobs:
4848
include:
4949
- php-version: "8.0"
5050
drupal: "^9.0"
51-
experimental: true
51+
experimental: false
5252
- php-version: "8.1"
5353
drupal: "^10.0"
5454
experimental: false
5555
- php-version: "8.1"
56-
drupal: "10.1.x-dev"
56+
drupal: "11.x-dev"
5757
experimental: true
5858
steps:
5959
- name: "Checkout"
@@ -68,9 +68,9 @@ jobs:
6868
- name: "Downgrade dev dependencies"
6969
run: "composer require phpunit/phpunit:6.5.14 drush/drush:~9 drupal/core-recommended:${{ matrix.drupal }} drupal/core-dev:${{ matrix.drupal }} --with-all-dependencies --dev --no-update"
7070
if: ${{ matrix.drupal == '^8.9' }}
71-
- name: "Upgrade to drupal/core:10.0.x and drush/drush:^11.0"
71+
- name: "Upgrade to drupal/core:${{ matrix.drupal }}"
7272
run: "composer require drupal/core-recommended:${{ matrix.drupal }} --with-all-dependencies --dev --no-update"
73-
if: ${{ matrix.drupal == '10.0.x-dev' || matrix.drupal == '10.1.x-dev' }}
73+
if: ${{ matrix.drupal == '^10.0' || matrix.drupal == '11.x-dev' }}
7474
- name: "Add phpspec/prophecy-phpunit"
7575
run: "composer require phpspec/prophecy-phpunit:^2 --dev --no-update"
7676
if: ${{ matrix.drupal != '^8.9' }}
@@ -97,9 +97,9 @@ jobs:
9797
include:
9898
- php-version: "8.0"
9999
drupal: "^9.0"
100-
experimental: true
100+
experimental: false
101101
- php-version: "8.1"
102-
drupal: "10.0.x-dev"
102+
drupal: "11.x-dev"
103103
experimental: true
104104
steps:
105105
- name: "Checkout"
@@ -142,14 +142,14 @@ jobs:
142142
cd ~/drupal
143143
./vendor/bin/phpstan analyze web/core/modules/migrate_drupal --no-progress | grep -q "tests/fixtures" && false || true
144144
- name: 'Check "Cannot redeclare token_theme() due to blazy_test.module"'
145-
if: ${{ matrix.drupal != '10.0.x-dev' }}
145+
if: ${{ matrix.drupal != '11.x-dev' }}
146146
run: |
147147
cd ~/drupal
148148
COMPOSER_MEMORY_LIMIT=-1 composer require drupal/token drupal/blazy
149149
./vendor/bin/phpstan analyze web/modules/contrib/blazy --no-progress || if (($? == 255)); then false; else true; fi
150150
COMPOSER_MEMORY_LIMIT=-1 composer remove drupal/token drupal/blazy
151151
- name: 'Check "Cannot redeclare video_embed_media_media_bundle_insert()"'
152-
if: ${{ matrix.drupal != '10.0.x-dev' }}
152+
if: ${{ matrix.drupal != '11.x-dev' }}
153153
run: |
154154
cd ~/drupal
155155
COMPOSER_MEMORY_LIMIT=-1 composer require drupal/video_embed_field drupal/slick
@@ -172,7 +172,7 @@ jobs:
172172
- "^9.0"
173173
include:
174174
- php-version: "8.1"
175-
drupal: "10.0.x-dev"
175+
drupal: "11.x-dev"
176176
experimental: true
177177
steps:
178178
- name: "Checkout"

tests/src/Rules/ClassExtendsInternalClassRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static function tearDownAfterClass(): void
4242
public function testRule(string $path, array $errorMessages): void
4343
{
4444
[$version, $minor] = explode('.', \Drupal::VERSION, 3);
45-
if (($version === '10' || ($version === '9' && (int) $minor >= 4))
45+
if (($version >= '10' || ($version === '9' && (int) $minor >= 4))
4646
&& $path === __DIR__ . '/../../fixtures/drupal/modules/phpstan_fixtures/src/Form/ExtendsContentEntityDeleteForm.php') {
4747
self::markTestSkipped('@internal was removed in 10.0.x and 9.4.x');
4848
}

tests/src/Rules/RequestStackGetMainRequestRuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public function testRule(): void
1919
[$version] = explode('.', \Drupal::VERSION, 2);
2020
if ($version === '8') {
2121
$this->analyse([__DIR__.'/data/request-stack.php'], []);
22-
} elseif ($version === '10') {
23-
self::markTestSkipped('Not tested on 10.x.x');
22+
} elseif ($version >= '10') {
23+
self::markTestSkipped('Not tested on 10.x.x or higher');
2424
} else {
2525
$this->analyse(
2626
[__DIR__.'/data/request-stack.php'],

tests/src/Rules/SymfonyCmfRouteObjectInterfaceConstantsRuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public function testRule(): void
1919
[$version] = explode('.', \Drupal::VERSION, 2);
2020
if ($version === '8') {
2121
$this->analyse([__DIR__.'/data/symfony-cmf-routing.php'], []);
22-
} elseif ($version === '10') {
23-
self::markTestSkipped('Not tested on 10.x.x');
22+
} elseif ($version >= '10') {
23+
self::markTestSkipped('Not tested on 10.x.x or higher');
2424
} else {
2525
$this->analyse(
2626
[__DIR__.'/data/symfony-cmf-routing.php'],

tests/src/Rules/SymfonyCmfRoutingInClassMethodSignatureRuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public function testRule(): void
1919
[$version] = explode('.', \Drupal::VERSION, 2);
2020
if ($version === '8') {
2121
$this->analyse([__DIR__.'/data/symfony-cmf-routing.php'], []);
22-
} elseif ($version === '10') {
23-
self::markTestSkipped('Not tested on 10.x.x');
22+
} elseif ($version >= '10') {
23+
self::markTestSkipped('Not tested on 10.x.x or higher');
2424
} else {
2525
$this->analyse(
2626
[__DIR__.'/data/symfony-cmf-routing.php'],

0 commit comments

Comments
 (0)