comparison core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.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 c2387f117808
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
45 $initial_history = locale_translation_get_file_history(); 45 $initial_history = locale_translation_get_file_history();
46 46
47 // Prepare for test: Simulate new translations being available. 47 // Prepare for test: Simulate new translations being available.
48 // Change the last updated timestamp of a translation file. 48 // Change the last updated timestamp of a translation file.
49 $contrib_module_two_uri = 'public://local/contrib_module_two-8.x-2.0-beta4.de._po'; 49 $contrib_module_two_uri = 'public://local/contrib_module_two-8.x-2.0-beta4.de._po';
50 touch(drupal_realpath($contrib_module_two_uri), REQUEST_TIME); 50 touch(\Drupal::service('file_system')->realpath($contrib_module_two_uri), REQUEST_TIME);
51 51
52 // Prepare for test: Simulate that the file has not been checked for a long 52 // Prepare for test: Simulate that the file has not been checked for a long
53 // time. Set the last_check timestamp to zero. 53 // time. Set the last_check timestamp to zero.
54 $query = db_update('locale_file'); 54 $query = db_update('locale_file');
55 $query->fields(['last_checked' => 0]); 55 $query->fields(['last_checked' => 0]);