function MediaFileFieldTestCase::assertFileNotExists in D7 Media 7.2
Same name and namespace in other branches
- 7.4 tests/media.test \MediaFileFieldTestCase::assertFileNotExists()
- 7.3 tests/media.test \MediaFileFieldTestCase::assertFileNotExists()
Asserts that a file does not exist on disk.
1 call to MediaFileFieldTestCase::assertFileNotExists()
- MediaFileFieldRevisionTestCase::testRevisions in tests/
media.test - Tests creating multiple revisions of a node and managing attached files.
File
- tests/
media.test, line 225 - Tests for media.module.
Class
- MediaFileFieldTestCase
- Provides methods specifically for testing Media 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);
}