Skip to content
Snippets Groups Projects

Closes #3526499

1 unresolved thread

Closes #3526499

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
124 122 $this->assertEquals(implode("\n", $phpUnitClientList), implode("\n", $internalList), self::TEST_LIST_MISMATCH_MESSAGE);
125
126 // PHPUnit's test discovery - via API.
127 $phpUnitConfiguration = (new Builder())->build(['--configuration', $configurationFilePath]);
128 $phpUnitTestSuite = (new TestSuiteBuilder())->build($phpUnitConfiguration);
129 $phpUnitApiList = [];
130 foreach ($phpUnitTestSuite->tests() as $testSuite) {
131 foreach ($testSuite->tests() as $test) {
132 $phpUnitApiList[] = $test->name();
133 }
134 }
135 asort($phpUnitApiList);
136
137 // Check against Drupal's discovery.
138 $this->assertEquals(implode("\n", $phpUnitApiList), implode("\n", $internalList), self::TEST_LIST_MISMATCH_MESSAGE);
139
  • Author Contributor

    We can remove this hunk now as this check is covered in much more depth by PhpUnitApiGetTestClassesTest and PhpUnitApiFindAllClassFilesTest.

  • Please register or sign in to reply
Please register or sign in to reply
Loading