function FileLoadTest::testLoadMissingFilepath in SimpleTest 7
Try to load a non-existent file by URI.
File
- tests/
file.test, line 1583 - This provides SimpleTests for the core file handling functionality. These include FileValidateTest and FileSaveTest.
Class
- FileLoadTest
- Tests the file_load() function.
Code
function testLoadMissingFilepath() {
$this
->assertFalse(reset(file_load_multiple(array(), array(
'uri' => 'foobar://misc/druplicon.png',
))), t("Try to load a file that doesn't exist in the database fails."));
$this
->assertFileHooksCalled(array());
}