function file_test_set_return in SimpleTest 7
Assign a return value for a given operation.
Parameters
$op: One of the hook_file_[validate,download,references] operations.
$value: Value for the hook to return.
See also
_file_test_get_return() and file_test_reset().
2 calls to file_test_set_return()
- FileDownloadTest::testPrivateFileTransfer in tests/
file.test - Test the private file transfer system.
- FileValidateTest::testCallerValidation in tests/
file.test - Test that the validators passed into are checked.
File
- tests/
file_test.module, line 194 - Helper module for the file tests.
Code
function file_test_set_return($op, $value) {
$return = variable_get('file_test_return', array());
$return[$op] = $value;
variable_set('file_test_return', $return);
}