Closed (fixed)
Project:
Token
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2023 at 00:36 UTC
Updated:
29 Apr 2024 at 19:39 UTC
Jump to comment: Most recent
In PHPStorm, I often accidentally auto-import Drupal\Tests\token\Kernel\KernelTestBase instead of Drupal\KernelTests\KernelTestBase as it seems to come up first on the list.
Given how KernelTestBase is one of the most common class names in the core codebase, it would make it so much easier of token's KernelTestBase was renamed to something unique, like TokenKernelTestBase.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
kim.pepperComment #4
berdirAgreed, happened to me too.
But just in case there are tests like that out there, lets keep and @deprecate the old class, that should also make it unlikely to be picked up by phpstorm like that.
Comment #5
kim.pepperDeprecated the old
\Drupal\Tests\token\Kernel\KernelTestBaseand added a CR.Comment #6
tyler36 commentedReviewed on Drupal
10.2.5.- All Kernel tests classes are now using
TokenKernelTestBase.-
Drupal\Tests\token\Kernel\KernelTestBase::classis marked as depreciated.Comment #8
berdirThanks, would have been happy too without the change record, but won't say no to it now that you created it ;)
Comment #9
berdir