Mercurial > hg > cmmr2012-drupal-site
diff core/modules/simpletest/simpletest.install @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/simpletest/simpletest.install Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/simpletest/simpletest.install Thu May 09 15:34:47 2019 +0100 @@ -6,6 +6,7 @@ */ use Drupal\Component\Utility\Environment; +use Drupal\Core\File\Exception\FileException; use PHPUnit\Framework\TestCase; /** @@ -189,5 +190,11 @@ simpletest_clean_environment(); } // Delete verbose test output and any other testing framework files. - file_unmanaged_delete_recursive('public://simpletest'); + try { + \Drupal::service('file_system')->deleteRecursive('public://simpletest'); + } + catch (FileException $e) { + // Ignore. + } + }