You are here

function file_test_get_calls in SimpleTest 7

Get the arguments passed to invocation of a given hook since file_test_reset() was last called.

@returns Array of the parameters passed to each call.

Parameters

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

See also

_file_test_log_call() and file_test_reset()

1 call to file_test_get_calls()
FileHookTestCase::assertFileHookCalled in tests/file.test
Assert that a hook_file_* hook was called a certain number of times.

File

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

Code

function file_test_get_calls($op) {
  $results = variable_get('file_test_results', array());
  return $results[$op];
}