You are here

class BackupFileFake in Backup and migrate prune 7

Same name and namespace in other branches
  1. 7.2 backup_migrate_prune.test \BackupFileFake

Fake backup_file for test purposes.

Hierarchy

Expanded class hierarchy of BackupFileFake

File

./backup_migrate_prune.test, line 184
Test implementation file

View source
class BackupFileFake extends backup_file {

  /**
   * Fakes detect_filetype_from_extension function to prevent accessing the DB
   */
  public function detect_filetype_from_extension() {
    return array(
      'extension' => 'gz',
      'filemime' => 'application/x-zip',
      'backup' => TRUE,
      'restore' => TRUE,
      'id' => 'gzip',
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BackupFileFake::detect_filetype_from_extension public function Fakes detect_filetype_from_extension function to prevent accessing the DB