You are here

function FileFieldTestCase::assertFileEntryNotExists in FileField 6.3

Assert that a file does not exist in the database.

1 call to FileFieldTestCase::assertFileEntryNotExists()
FileFieldRevisionTestCase::testRevisions in tests/filefield.test
Test creating multiple revisions of a node and managing the attached files.

File

tests/filefield.test, line 182

Class

FileFieldTestCase

Code

function assertFileEntryNotExists($file, $message) {
  module_load_include('inc', 'filefield', 'field_file');
  $message = isset($message) ? $message : t('File %file exists in database at the correct path.', array(
    '%file' => $file['filepath'],
  ));
  $this
    ->assertFalse(field_file_load($file['fid'], TRUE), $message);
}