summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r--modules/simpletest/tests/form_test.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/simpletest/tests/form_test.module b/modules/simpletest/tests/form_test.module
index 52cca5e18..142debf47 100644
--- a/modules/simpletest/tests/form_test.module
+++ b/modules/simpletest/tests/form_test.module
@@ -1506,7 +1506,8 @@ function form_test_load_include_custom($form, &$form_state) {
// Specify the include file and enable form caching. That way the form is
// cached when it is submitted, but needs to find the specified submit handler
// in the include.
- $form_state['build_info']['files'][] = array('module' => 'form_test', 'name' => 'form_test.file');
+ // Filename is a bit weird here: modules/simpletest/tests/form_test.file.inc
+ form_load_include($form_state, 'inc', 'form_test', 'form_test.file');
$form_state['cache'] = TRUE;
return $form;
}