diff --git a/core/phpstan-baseline.neon b/core/phpstan-baseline.neon index c990a05bfc30cb7c1c96eae13d83f34503f2c0cd..e1e023376cc73249f08f388cfb8d00b701d99674 100644 --- a/core/phpstan-baseline.neon +++ b/core/phpstan-baseline.neon @@ -2880,16 +2880,6 @@ parameters: count: 1 path: tests/Drupal/Tests/Composer/ComposerTest.php - - - message: "#^Class Drupal\\\\Driver\\\\Database\\\\corefake\\\\Install\\\\Tasks not found\\.$#" - count: 1 - path: tests/Drupal/Tests/Core/Database/InstallerObjectTest.php - - - - message: "#^Class Drupal\\\\Driver\\\\Database\\\\fake\\\\Install\\\\Tasks not found\\.$#" - count: 1 - path: tests/Drupal/Tests/Core/Database/InstallerObjectTest.php - - message: "#^Trying to mock an undefined method getRevisionId\\(\\) on class Drupal\\\\Tests\\\\Core\\\\Entity\\\\UrlTestEntity\\.$#" count: 1 diff --git a/core/tests/Drupal/Tests/Core/Database/InstallerObjectTest.php b/core/tests/Drupal/Tests/Core/Database/InstallerObjectTest.php index 80f8a4070599b7bbf4a34026f4a304bf47dc259f..a17e8597157b20fb9f3463ad54a09f7c3e7b7986 100644 --- a/core/tests/Drupal/Tests/Core/Database/InstallerObjectTest.php +++ b/core/tests/Drupal/Tests/Core/Database/InstallerObjectTest.php @@ -63,9 +63,11 @@ public function providerDbInstallerObject() { ['mysql', "Drupal\\mysql\\Driver\\Database\\mysql", MysqlInstallTasks::class], // A driver only in the custom namespace. + // @phpstan-ignore-next-line ['fake', "Drupal\\Driver\\Database\\fake", FakeInstallTasks::class], // A driver in both namespaces. The custom one takes precedence. + // @phpstan-ignore-next-line ['corefake', "Drupal\\Driver\\Database\\corefake", CustomCoreFakeInstallTasks::class], // A driver from a module that has a different name as the driver.