comparison 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
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
4 * @file 4 * @file
5 * Install, update and uninstall functions for the simpletest module. 5 * Install, update and uninstall functions for the simpletest module.
6 */ 6 */
7 7
8 use Drupal\Component\Utility\Environment; 8 use Drupal\Component\Utility\Environment;
9 use Drupal\Core\File\Exception\FileException;
9 use PHPUnit\Framework\TestCase; 10 use PHPUnit\Framework\TestCase;
10 11
11 /** 12 /**
12 * Minimum value of PHP memory_limit for SimpleTest. 13 * Minimum value of PHP memory_limit for SimpleTest.
13 */ 14 */
187 // would also delete the test site of the parent test process. 188 // would also delete the test site of the parent test process.
188 if (!drupal_valid_test_ua()) { 189 if (!drupal_valid_test_ua()) {
189 simpletest_clean_environment(); 190 simpletest_clean_environment();
190 } 191 }
191 // Delete verbose test output and any other testing framework files. 192 // Delete verbose test output and any other testing framework files.
192 file_unmanaged_delete_recursive('public://simpletest'); 193 try {
194 \Drupal::service('file_system')->deleteRecursive('public://simpletest');
195 }
196 catch (FileException $e) {
197 // Ignore.
198 }
199
193 } 200 }