function MediaFileFieldTestCase::assertFileExists in D7 Media 7.4
Same name and namespace in other branches
- 7.2 tests/media.test \MediaFileFieldTestCase::assertFileExists()
- 7.3 tests/media.test \MediaFileFieldTestCase::assertFileExists()
Asserts that a file exists physically on disk.
2 calls to MediaFileFieldTestCase::assertFileExists()
- MediaFileFieldRevisionTestCase::testRevisions in tests/
media.test - Tests creating multiple revisions of a node and managing attached files.
- MediaFileFieldValidateTestCase::testRequired in tests/
media.test - Tests the required property on file fields.
File
- tests/
media.test, line 207 - Tests for media.module.
Class
- MediaFileFieldTestCase
- Provides methods specifically for testing Media module's field handling.
Code
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);
}