summaryrefslogtreecommitdiff
path: root/modules/simpletest/drupal_web_test_case.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r--modules/simpletest/drupal_web_test_case.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 5bb6c51a9..ad27ac258 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -42,6 +42,7 @@ abstract class DrupalTestCase {
'#pass' => 0,
'#fail' => 0,
'#exception' => 0,
+ '#debug' => 0,
);
/**
@@ -376,6 +377,12 @@ abstract class DrupalTestCase {
* FALSE.
*/
protected function error($message = '', $group = 'Other', array $caller = NULL) {
+ if ($group == 'User notice') {
+ // Since 'User notice' is set by trigger_error() which is used for debug
+ // set the message to a status of 'debug'.
+ return $this->assert('debug', $message, 'Debug', $caller);
+ }
+
return $this->assert('exception', $message, $group, $caller);
}