You are here

function FileFieldTestCase::assertFileNotExists in Drupal 7

Asserts that a file does not exist on disk.

1 call to FileFieldTestCase::assertFileNotExists()
FileFieldRevisionTestCase::testRevisions in modules/file/tests/file.test
Tests creating multiple revisions of a node and managing attached files.

File

modules/file/tests/file.test, line 200
Tests for file.module.

Class

FileFieldTestCase
Provides methods specifically for testing File module's field handling.

Code

function assertFileNotExists($file, $message = NULL) {
  $message = isset($message) ? $message : format_string('File %file exists on the disk.', array(
    '%file' => $file->uri,
  ));
  $this
    ->assertFalse(is_file($file->uri), $message);
}