Closes #3526499
Open
requested to merge issue/drupal-3526499:3526499-phpunitapigettestclassestest-and-phpunitapifindallclassfilestest into 11.x
1 unresolved thread
Closes #3526499
Merge request reports
Activity
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
Please register or sign in to reply