diff options
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index ad0e1256e..d5c1d2d9f 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -191,7 +191,14 @@ class DrupalWebTestCase { // Return to testing prefix. $db_prefix = $current_db_prefix; - return $status == 'pass' ? TRUE : FALSE; + // We do not use a ternary operator here to allow a breakpoint on + // test failure. + if ($status == 'pass') { + return TRUE; + } + else { + return FALSE; + } } /** |