You are here

function UnmanagedDeleteTest::testMissing in Zircon Profile 8

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

Try deleting a missing file.

File

core/modules/system/src/Tests/File/UnmanagedDeleteTest.php, line 31
Contains \Drupal\system\Tests\File\UnmanagedDeleteTest.

Class

UnmanagedDeleteTest
Tests the unmanaged file delete function.

Namespace

Drupal\system\Tests\File

Code

function testMissing() {

  // Try to delete a non-existing file
  $this
    ->assertTrue(file_unmanaged_delete(file_default_scheme() . '/' . $this
    ->randomMachineName()), 'Returns true when deleting a non-existent file.');
}