file_test.module

Version 1.18 (checked in on 2009/10/20 at 00:55:29 by dries)

Helper module for the file tests.

The caller is must call file_test_reset() to initializing this module before calling file_test_get_calls() or file_test_set_return().

Constants

NameDescription
FILE_URL_TEST_CDN_1
FILE_URL_TEST_CDN_2

Functions

NameDescription
file_test_file_copyImplement hook_file_copy().
file_test_file_deleteImplement hook_file_delete().
file_test_file_downloadImplement hook_file_download().
file_test_file_insertImplement hook_file_insert().
file_test_file_loadImplement hook_file_load().
file_test_file_mimetype_mapping_alterImplementation of hook_file_mimetype_mapping_alter().
file_test_file_moveImplement hook_file_move().
file_test_file_referencesImplement hook_file_references().
file_test_file_updateImplement hook_file_update().
file_test_file_url_alterImplement hook_file_url_alter().
file_test_file_validateImplement hook_file_validate().
file_test_get_all_callsGet an array with the calls for all hooks.
file_test_get_callsGet the arguments passed to invocation of a given hook since file_test_reset() was last called.
file_test_menuImplement hook_menu().
file_test_resetReset/initialize the history of calls to the file_* hooks.
file_test_set_returnAssign a return value for a given operation.
file_test_stream_wrappersImplement hook_stream_wrappers().
_file_test_formForm to test file uploads.
_file_test_form_submitProcess the upload.
_file_test_get_returnLoad the appropriate return value.
_file_test_log_callStore the values passed to a hook invocation.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.