Skip to content

Commit 9a0c2b6

Browse files
committed
{Rules} Drop \mglaman\PHPStanDrupal\Tests\Rules\ClassExtendsInternalClassRuleTest::testRule ContentEntityDeleteForm test case and dependencies
1 parent d114861 commit 9a0c2b6

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

tests/fixtures/drupal/modules/phpstan_fixtures/src/Form/ExtendsContentEntityDeleteForm.php

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/src/Rules/ClassExtendsInternalClassRuleTest.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ public static function tearDownAfterClass(): void
4343
*/
4444
public function testRule(string $path, array $errorMessages): void
4545
{
46-
[$version, $minor] = explode('.', \Drupal::VERSION, 3);
47-
if (($version >= '10' || ($version === '9' && (int) $minor >= 4))
48-
&& $path === __DIR__ . '/../../fixtures/drupal/modules/phpstan_fixtures/src/Form/ExtendsContentEntityDeleteForm.php') {
49-
self::markTestSkipped('@internal was removed in 10.0.x and 9.4.x');
50-
}
5146
$this->analyse([$path], $errorMessages);
5247
}
5348

@@ -128,16 +123,6 @@ public static function pluginData(): \Generator
128123
__DIR__ . '/../../fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsPHPStanDrupalModuleWithInternalClassesExternalClass.php',
129124
[],
130125
];
131-
yield 'tip for ContentEntityDeleteForm' => [
132-
__DIR__ . '/../../fixtures/drupal/modules/phpstan_fixtures/src/Form/ExtendsContentEntityDeleteForm.php',
133-
[
134-
[
135-
'Class Drupal\phpstan_fixtures\Form\ExtendsContentEntityDeleteForm extends @internal class Drupal\Core\Entity\ContentEntityDeleteForm.',
136-
7,
137-
'Extend \Drupal\Core\Entity\ContentEntityConfirmFormBase. See https://www.drupal.org/node/2491057'
138-
]
139-
],
140-
];
141126
}
142127

143128
private static function cleanDrupalCoreStubs(): void {

0 commit comments

Comments
 (0)