class BackupFileFake in Backup and migrate prune 7
Same name and namespace in other branches
- 7.2 backup_migrate_prune.test \BackupFileFake
Fake backup_file for test purposes.
Hierarchy
- class \BackupFileFake extends \backup_file
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BackupFileFake:: |
public | function | Fakes detect_filetype_from_extension function to prevent accessing the DB |