comparison core/modules/update/tests/src/Functional/UpdateDeleteFileIfStaleTest.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
36 // even smaller than that. 36 // even smaller than that.
37 $this->config('system.file') 37 $this->config('system.file')
38 ->set('temporary_maximum_age', -100000) 38 ->set('temporary_maximum_age', -100000)
39 ->save(); 39 ->save();
40 40
41 $file_path = drupal_realpath($file_name); 41 $file_path = \Drupal::service('file_system')->realpath($file_name);
42 update_delete_file_if_stale($file_path); 42 update_delete_file_if_stale($file_path);
43 43
44 $this->assertFalse(is_file($file_path)); 44 $this->assertFalse(is_file($file_path));
45 } 45 }
46 46