1 system.install system_update_1085()

Remove superfluous test files if they are present.

Related topics


core/modules/system/system.install, line 3372
Install, update and uninstall functions for the system module.


function system_update_1085() {
  // Crufty files that may have been left behind after PR 3911.
  // @see https://github.com/backdrop/backdrop-issues/issues/5465
  $base = BACKDROP_ROOT . '/core/modules/system/tests/';
  $filenames = array(
    $base . 'cron_queue_test.module',
    $base . 'system_cron_test.module',
  foreach ($filenames as $filename) {
    if (file_exists($filename)) {
      if (!unlink($filename)) {
        backdrop_set_message(t('Unable to remove file %filename, which is no longer used in its current location. Please remove it from the file system.', array('filename' => $filename)), 'warning');