You are here

function FileLoadTest::testLoadInvalidStatus in SimpleTest 7

Try to load a non-existent file by status.

File

tests/file.test, line 1591
This provides SimpleTests for the core file handling functionality. These include FileValidateTest and FileSaveTest.

Class

FileLoadTest
Tests the file_load() function.

Code

function testLoadInvalidStatus() {
  $this
    ->assertFalse(reset(file_load_multiple(array(), array(
    'status' => -99,
  ))), t("Trying to load a file with an invalid status fails."));
  $this
    ->assertFileHooksCalled(array());
}