function UnmanagedMoveTest::testMissing

Try to move a missing file.

File

drupal/core/modules/system/lib/Drupal/system/Tests/File/UnmanagedMoveTest.php, line 56
Definition of Drupal\system\Tests\File\UnmanagedMoveTest.

Class

UnmanagedMoveTest
Unmanaged move related tests.

Namespace

Drupal\system\Tests\File

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