You are here

function FileUnmanagedMoveTest::testMissing in Drupal 7

Try to move a missing file.

File

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

Class

FileUnmanagedMoveTest
Unmanaged move related tests.

Code

function testMissing() {

  // Move non-existent file.
  $new_filepath = file_unmanaged_move($this
    ->randomName(), $this
    ->randomName());
  $this
    ->assertFalse($new_filepath, 'Moving a missing file fails.');
}