function FileFieldTestCase::assertFileExists

Asserts that a file exists physically on disk.

14 calls to FileFieldTestCase::assertFileExists()
FileFieldRevisionTestCase::testRevisions in drupal-7.x/modules/file/tests/file.test
Tests creating multiple revisions of a node and managing attached files.
FileFieldRevisionTestCase::testRevisions in drupal-7.x/modules/file/tests/file.test
Tests creating multiple revisions of a node and managing attached files.
FileFieldValidateTestCase::testFileExtension in drupal-7.x/modules/file/tests/file.test
Tests file extension checking.
FileFieldValidateTestCase::testFileExtension in drupal-7.x/modules/file/tests/file.test
Tests file extension checking.
FileFieldValidateTestCase::testFileMaxSize in drupal-7.x/modules/file/tests/file.test
Tests the max file size validator.

... See full list

Archivo

drupal-7.x/modules/file/tests/file.test, line 182
Tests for file.module.

Class

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

Código

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