Issue #1991088 by alexpott: Fixed Test info not displayed for PHPUnit tests when using run-tests.sh.

8.0.x
Nathaniel Catchpole 2013-05-20 09:30:48 +01:00
parent 6718550cda
commit d02b879b48
1 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,8 @@ else {
// Bootstrap to perform initial validation or other operations.
drupal_bootstrap(DRUPAL_BOOTSTRAP_CODE);
simpletest_classloader_register();
if (!module_exists('simpletest')) {
simpletest_script_print_error("The simpletest module must be enabled before this script can run.");
exit;
@ -343,7 +345,7 @@ function simpletest_script_get_all_tests() {
*/
function simpletest_script_execute_batch($test_classes) {
global $args, $test_ids;
simpletest_classloader_register();
// Multi-process execution.
$children = array();
while (!empty($test_classes) || !empty($children)) {