Commit dafb9ad5 authored by catch's avatar catch
Browse files

fix: #3626548 Fix RunInSeparateProcesses typos

By: mcdruid
By: bt dev2
By: dcam
(cherry picked from commit fc11adb9)
parent 0f0b0d6d
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for core/tests/Drupal/Tests/Core/Test/BrowserTestBaseTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ public function testTearDownWithoutSetUp(): void {
/**
 * A class extending BrowserTestBase for testing purposes.
 *
 * @phpstan-ignore testClass.missingAttribute.Group, testClass.missingAttribute.RunInSeparateProcesses
 * @phpstan-ignore testClass.missingAttribute.Group, testClass.missingAttribute.RunTestsInSeparateProcesses
 */
class BrowserTestBaseMockableClassTest extends BrowserTestBase {

+2 −2
Changes for core/tests/PHPStan/Rules/TestClassClassMetadata.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -152,8 +152,8 @@ public function processNode(Node $node, Scope $scope): array {
        $class->isSubclassOfClass($this->reflectionProvider->getClass(BrowserTestBase::class)) ||
        $class->isSubclassOfClass($this->reflectionProvider->getClass(KernelTestBase::class));
      if ($should_run_in_separate_process && !$has_run_in_separate_process_attribute) {
        $fails[] = RuleErrorBuilder::message("Test class {$class->getName()} must have attribute \PHPUnit\Framework\Attributes\RunInSeparateProcesses.")
          ->identifier('testClass.missingAttribute.RunInSeparateProcesses')
        $fails[] = RuleErrorBuilder::message("Test class {$class->getName()} must have attribute \PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses.")
          ->identifier('testClass.missingAttribute.RunTestsInSeparateProcesses')
          ->line($node->getStartLine())
          ->build();
      }
+2 −2
Changes for core/tests/PHPStan/tests/TestClassClassMetadataTest.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ public function testRule(): void {
      [__DIR__ . '/../fixtures/test-classes-missing-attributes.php'],
      [
        [
          'Test class Drupal\Tests\Core\Foo\MissingAttributes must have attribute \PHPUnit\Framework\Attributes\RunInSeparateProcesses.',
          'Test class Drupal\Tests\Core\Foo\MissingAttributes must have attribute \PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses.',
          18,
        ],
        [
@@ -77,7 +77,7 @@ public function testRule(): void {
          21,
        ],
        [
          'Test class Drupal\Tests\Core\Foo\MissingRunTestsInSeparateProcesses must have attribute \PHPUnit\Framework\Attributes\RunInSeparateProcesses.',
          'Test class Drupal\Tests\Core\Foo\MissingRunTestsInSeparateProcesses must have attribute \PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses.',
          25,
        ],
      ]