function _file_test_log_call

Store the values passed to a hook invocation.

Parameters

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

$args: Values passed to hook.

See also

file_test_get_calls()

file_test_reset()

8 calls to _file_test_log_call()
file_test_file_copy in drupal/core/modules/file/tests/file_test/file_test.module
Implements hook_file_copy().
file_test_file_download in drupal/core/modules/file/tests/file_test/file_test.module
Implements hook_file_download().
file_test_file_insert in drupal/core/modules/file/tests/file_test/file_test.module
Implements hook_file_insert().
file_test_file_load in drupal/core/modules/file/tests/file_test/file_test.module
Implements hook_file_load().
file_test_file_move in drupal/core/modules/file/tests/file_test/file_test.module
Implements hook_file_move().

... See full list

File

drupal/core/modules/file/tests/file_test/file_test.module, line 110
Helper module for the file tests.

Code

function _file_test_log_call($op, $args) {
  $results = Drupal::state()
    ->get('file_test.results') ?: array();
  $results[$op][] = $args;
  Drupal::state()
    ->set('file_test.results', $results);
}