summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/tests/form.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/simpletest/tests/form.test b/modules/simpletest/tests/form.test
index 991186ba3..46bc67b84 100644
--- a/modules/simpletest/tests/form.test
+++ b/modules/simpletest/tests/form.test
@@ -306,7 +306,7 @@ class FormsElementsTableSelectFunctionalTest extends DrupalWebTestCase {
// Clear errors and messages.
drupal_get_messages();
- form_set_error(NULL, '', TRUE);
+ form_clear_error();
// Return the processed form together with form_state and errors
// to allow the caller lowlevel access to the form.