public static function TestBase::filePreDeleteCallback

Ensures test files are deletable within file_unmanaged_delete_recursive().

Some tests chmod generated files to be read only. During tearDown() and other cleanup operations, these files need to get deleted too.

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php, line 1219
Definition of Drupal\simpletest\TestBase.

Class

TestBase
Base class for Drupal tests.

Namespace

Drupal\simpletest

Code

public static function filePreDeleteCallback($path) {
  chmod($path, 0700);
}