1 file.test FileUnmanagedMoveTest::testMissing()

Try to move a missing file.

File

core/modules/simpletest/tests/file.test, line 1578
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.');
}