function FileFieldTestCase::assertFileNotExists in FileField 6.3
Assert that a file does not exist on disk.
1 call to FileFieldTestCase::assertFileNotExists()
- FileFieldRevisionTestCase::testRevisions in tests/
filefield.test - Test creating multiple revisions of a node and managing the attached files.
File
- tests/
filefield.test, line 174
Class
Code
function assertFileNotExists($file, $message = NULL) {
$message = isset($message) ? $message : t('File %file exists on the disk.', array(
'%file' => $file['filepath'],
));
$this
->assertFalse(is_file($file['filepath']), $message);
}