summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/tests/form.test2
-rw-r--r--modules/simpletest/tests/form_test.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/simpletest/tests/form.test b/modules/simpletest/tests/form.test
index 895084f6b..ed556c540 100644
--- a/modules/simpletest/tests/form.test
+++ b/modules/simpletest/tests/form.test
@@ -432,7 +432,7 @@ class FormsFormStorageTestCase extends DrupalWebTestCase {
}
/**
- * Tests using the form with an activated #cache property.
+ * Tests using the form with an activated $form_state['cache'] property.
*/
function testFormCached() {
$user = $this->drupalCreateUser(array('access content'));
diff --git a/modules/simpletest/tests/form_test.module b/modules/simpletest/tests/form_test.module
index efd26b773..5e420fc4a 100644
--- a/modules/simpletest/tests/form_test.module
+++ b/modules/simpletest/tests/form_test.module
@@ -329,7 +329,7 @@ function form_storage_test_form($form, &$form_state) {
if (isset($_REQUEST['cache'])) {
// Manually activate caching, so we can test that the storage keeps working
// when it's enabled.
- $form['#cache'] = TRUE;
+ $form_state['cache'] = TRUE;
}
return $form;