You are here

function FileFieldTestCase::assertFileExists in FileField 6.3

Assert that a file exists physically on disk.

5 calls to FileFieldTestCase::assertFileExists()
FileFieldRevisionTestCase::testRevisions in tests/filefield.test
Test creating multiple revisions of a node and managing the attached files.
FileFieldValidateTestCase::testFileExtension in tests/filefield.test
Test the file extension, do additional checks if mimedetect is installed.
FileFieldValidateTestCase::testFileMaxSize in tests/filefield.test
Test the max file size validator.
FileFieldValidateTestCase::testNodeMaxSize in tests/filefield.test
Test the max file size per node validator.
FileFieldValidateTestCase::testRequired in tests/filefield.test
Test required property on file fields.

File

tests/filefield.test, line 156

Class

FileFieldTestCase

Code

function assertFileExists($file, $message = NULL) {
  $message = isset($message) ? $message : t('File %file exists on the disk.', array(
    '%file' => $file['filepath'],
  ));
  $this
    ->assertTrue(is_file($file['filepath']), $message);
}