You are here

function _file_test_log_call in SimpleTest 7

Store the values passed to a hook invocation.

Parameters

$op: One of the hook_file_* operations: 'load', 'validate', 'download', 'references', 'insert', 'update', 'copy', 'move', 'delete'.

$args: Values passed to hook.

See also

file_test_get_calls() and file_test_reset()

9 calls to _file_test_log_call()
file_test_file_copy in tests/file_test.module
Implement hook_file_copy().
file_test_file_delete in tests/file_test.module
Implement hook_file_delete().
file_test_file_download in tests/file_test.module
Implement hook_file_download().
file_test_file_insert in tests/file_test.module
Implement hook_file_insert().
file_test_file_load in tests/file_test.module
Implement hook_file_load().

... See full list

File

tests/file_test.module, line 165
Helper module for the file tests.

Code

function _file_test_log_call($op, $args) {
  $results = variable_get('file_test_results', array());
  $results[$op][] = $args;
  variable_set('file_test_results', $results);
}