You are here

function UnmanagedMoveTest::testMissing in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/File/UnmanagedMoveTest.php \Drupal\system\Tests\File\UnmanagedMoveTest::testMissing()

Try to move a missing file.

File

core/modules/system/src/Tests/File/UnmanagedMoveTest.php, line 53
Contains \Drupal\system\Tests\File\UnmanagedMoveTest.

Class

UnmanagedMoveTest
Tests the unmanaged file move function.

Namespace

Drupal\system\Tests\File

Code

function testMissing() {

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