diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-11-18 18:51:11 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-11-18 18:51:11 +0000 |
commit | 4788bf25fac2386002210c197eed782497936473 (patch) | |
tree | 1452b327d2875787daa14ec059377042bf26dec7 /modules/simpletest/tests | |
parent | 63d48af6fb398c54d043de5c36809c4a23025167 (diff) | |
download | brdo-4788bf25fac2386002210c197eed782497936473.tar.gz brdo-4788bf25fac2386002210c197eed782497936473.tar.bz2 |
- Patch #583730 by sun: fixed form caching.
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r-- | modules/simpletest/tests/form.test | 2 | ||||
-rw-r--r-- | modules/simpletest/tests/form_test.module | 2 |
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; |