You are here

function FileUnmanagedDeleteTest::testMissing in SimpleTest 7

Try deleting a missing file.

File

tests/file.test, line 965
This provides SimpleTests for the core file handling functionality. These include FileValidateTest and FileSaveTest.

Class

FileUnmanagedDeleteTest
Deletion related tests.

Code

function testMissing() {

  // Try to delete a non-existing file
  $this
    ->assertTrue(file_unmanaged_delete(file_directory_path() . '/' . $this
    ->randomName()), t('Returns true when deleting a non-existent file.'));
}