You are here

function FileUnmanagedMoveTest::testMissing in SimpleTest 7

Try to move a missing file.

File

tests/file.test, line 1107
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, t('Moving a missing file fails.'));
}