| 1 file.test | FileLoadTest::testLoadMissingFid() | 
Try to load a non-existent file by fid.
File
- core/modules/ simpletest/ tests/ file.test, line 2087 
- This provides SimpleTests for the core file handling functionality. These include FileValidateTest and FileSaveTest.
Class
- FileLoadTest
- Tests the file_load() function.
Code
function testLoadMissingFid() {
  $this->assertFalse(file_load(-1), "Try to load an invalid fid fails.");
  $this->assertFileHooksCalled(array());
}
