psalm-plugin-drupal icon indicating copy to clipboard operation
psalm-plugin-drupal copied to clipboard

False Positive ERROR: MissingDependency - modules/custom/paragraphs_tree/tests/src/Functional/ParagraphsTreeUserTest.php:12:38 - Drupal\Tests\paragraphs_tree\Functional\ParagraphsTreeTestBase depends on class or interface drupal\tests\browsertestbase that does not exist (see https://psalm.dev/157) class ParagraphsTreeUserTest extends ParagraphsTreeTestBase {

Open hich-dot opened this issue 1 year ago • 0 comments

While running Psalm analysis specifically for the custom modules directory, I encountered the following error:

ERROR: MissingDependency - modules/custom/paragraphs_tree/tests/src/Functional/ParagraphsTreeUserTest.php:12:38 - Drupal\Tests\paragraphs_tree\Functional\ParagraphsTreeTestBase depends on class or interface drupal\tests\browsertestbase that does not exist (see https://psalm.dev/157) class ParagraphsTreeUserTest extends ParagraphsTreeTestBase {

It seems that the class Drupal\Tests\BrowserTestBase is being incorrectly flagged as missing, even though it exists as part of Drupal's core testing framework.

hich-dot avatar Dec 04 '24 12:12 hich-dot