You are here

function _file_test_get_return in SimpleTest 7

Load the appropriate return value.

Parameters

$op: One of the hook_file_[validate,download,references] operations.

Return value

Value set by file_test_set_return().

See also

file_test_set_return() and file_test_reset().

3 calls to _file_test_get_return()
file_test_file_download in tests/file_test.module
Implement hook_file_download().
file_test_file_references in tests/file_test.module
Implement hook_file_references().
file_test_file_validate in tests/file_test.module
Implement hook_file_validate().

File

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

Code

function _file_test_get_return($op) {
  $return = variable_get('file_test_return', array(
    $op => NULL,
  ));
  return $return[$op];
}