You are here

function FileLoadTest::testLoadMissingFid in SimpleTest 7

Try to load a non-existent file by fid.

File

tests/file.test, line 1575
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), t("Try to load an invalid fid fails."));
  $this
    ->assertFileHooksCalled(array());
}