function FileUnmanagedMoveTest::testMissing

Try to move a missing file.

File

modules/simpletest/tests/file.test, line 1591

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.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.