Mercurial > hg > isophonics-drupal-site
diff core/tests/Drupal/Tests/BrowserTestBase.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line diff
--- a/core/tests/Drupal/Tests/BrowserTestBase.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/tests/Drupal/Tests/BrowserTestBase.php Thu May 09 15:33:08 2019 +0100 @@ -415,7 +415,7 @@ } /** - * Ensures test files are deletable within file_unmanaged_delete_recursive(). + * Ensures test files are deletable. * * Some tests chmod generated files to be read only. During * BrowserTestBase::cleanupEnvironment() and other cleanup operations, @@ -423,6 +423,8 @@ * * @param string $path * The file path. + * + * @see \Drupal\Core\File\FileSystemInterface::deleteRecursive() */ public static function filePreDeleteCallback($path) { // When the webserver runs with the same system user as phpunit, we can @@ -451,7 +453,7 @@ } // Delete test site directory. - file_unmanaged_delete_recursive($this->siteDirectory, [$this, 'filePreDeleteCallback']); + \Drupal::service('file_system')->deleteRecursive($this->siteDirectory, [$this, 'filePreDeleteCallback']); } /**