From 8b86d0da84570d3f6d461a502b94bedc2f91889e Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 15 Aug 2009 06:20:20 +0000 Subject: #296574 by boombatower and chx: Provide debug function for debugging during tests and elsewhere. --- modules/simpletest/tests/common.test | 2 +- modules/simpletest/tests/error.test | 2 +- modules/simpletest/tests/error_test.module | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/simpletest/tests') diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index bbea196b2..f4837b8d0 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -1054,7 +1054,7 @@ class DrupalErrorCollectionUnitTest extends DrupalWebTestCase { if (count($this->collectedErrors) == 3) { $this->assertError($this->collectedErrors[0], 'Notice', 'error_test_generate_warnings()', 'error_test.module', 'Undefined variable: bananas'); $this->assertError($this->collectedErrors[1], 'Warning', 'error_test_generate_warnings()', 'error_test.module', 'Division by zero'); - $this->assertError($this->collectedErrors[2], 'User notice', 'error_test_generate_warnings()', 'error_test.module', 'Drupal is awesome'); + $this->assertError($this->collectedErrors[2], 'User warning', 'error_test_generate_warnings()', 'error_test.module', 'Drupal is awesome'); } else { // Give back the errors to the log report. diff --git a/modules/simpletest/tests/error.test b/modules/simpletest/tests/error.test index 2be62f327..28d6e0830 100644 --- a/modules/simpletest/tests/error.test +++ b/modules/simpletest/tests/error.test @@ -36,7 +36,7 @@ class DrupalErrorHandlerUnitTest extends DrupalWebTestCase { '%file' => realpath('modules/simpletest/tests/error_test.module'), ); $error_user_notice = array( - '%type' => 'User notice', + '%type' => 'User warning', '%message' => 'Drupal is awesome', '%function' => 'error_test_generate_warnings()', '%line' => 48, diff --git a/modules/simpletest/tests/error_test.module b/modules/simpletest/tests/error_test.module index 7ee5cca05..c9a859dbe 100644 --- a/modules/simpletest/tests/error_test.module +++ b/modules/simpletest/tests/error_test.module @@ -45,7 +45,7 @@ function error_test_generate_warnings($collect_errors = FALSE) { // This will generate a warning. $awesomely_big = 1/0; // This will generate a user error. - trigger_error("Drupal is awesome", E_USER_NOTICE); + trigger_error("Drupal is awesome", E_USER_WARNING); return ""; } -- cgit v1.2.3