file_test.module

Version 1.20 (checked in on 2010/01/29 at 01:59:32 by webchick)

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_copyImplements hook_file_copy().
file_test_file_deleteImplements hook_file_delete().
file_test_file_downloadImplements hook_file_download().
file_test_file_insertImplements hook_file_insert().
file_test_file_loadImplements hook_file_load().
file_test_file_mimetype_mapping_alterImplements hook_file_mimetype_mapping_alter().
file_test_file_moveImplements hook_file_move().
file_test_file_referencesImplements hook_file_references().
file_test_file_updateImplements hook_file_update().
file_test_file_url_alterImplements hook_file_url_alter().
file_test_file_validateImplements 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_menuImplements 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_wrappersImplements 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.