You are here

public function BackupFileFake::detect_filetype_from_extension in Backup and migrate prune 7.2

Same name and namespace in other branches
  1. 7 backup_migrate_prune.test \BackupFileFake::detect_filetype_from_extension()

Fakes detect_filetype_from_extension function to prevent accessing the DB

File

./backup_migrate_prune.test, line 188
Test implementation file

Class

BackupFileFake
Fake backup_file for test purposes.

Code

public function detect_filetype_from_extension() {
  return array(
    'extension' => 'gz',
    'filemime' => 'application/x-zip',
    'backup' => TRUE,
    'restore' => TRUE,
    'id' => 'gzip',
  );
}