diff options
Diffstat (limited to 'modules/simpletest/tests/file_test.module')
-rw-r--r-- | modules/simpletest/tests/file_test.module | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/simpletest/tests/file_test.module b/modules/simpletest/tests/file_test.module index 4e7c7e965..7a9644f0d 100644 --- a/modules/simpletest/tests/file_test.module +++ b/modules/simpletest/tests/file_test.module @@ -148,11 +148,13 @@ function file_test_set_return($op, $value) { /** * Implementation of hook_file_load(). */ -function file_test_file_load($file) { - _file_test_log_call('load', array($file)); - // Assign a value on the object so that we can test that the $file is passed - // by reference. - $file->file_test['loaded'] = TRUE; +function file_test_file_load($files) { + foreach ($files as $file) { + _file_test_log_call('load', array($file)); + // Assign a value on the object so that we can test that the $file is passed + // by reference. + $file->file_test['loaded'] = TRUE; + } } /** |