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