function backup_migrate_simpletest in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 backup_migrate.module \backup_migrate_simpletest()
- 8.3 backup_migrate.module \backup_migrate_simpletest()
- 5.2 backup_migrate.module \backup_migrate_simpletest()
- 5 backup_migrate.module \backup_migrate_simpletest()
- 6.3 backup_migrate.module \backup_migrate_simpletest()
- 6.2 backup_migrate.module \backup_migrate_simpletest()
- 7.2 backup_migrate.module \backup_migrate_simpletest()
Implements hook_simpletest().
File
- ./
backup_migrate.module, line 405 - Backup and restore databases for Drupal.
Code
function backup_migrate_simpletest() {
$dir = drupal_get_path('module', 'backup_migrate') . '/tests';
$tests = file_scan_directory($dir, '\\.test$');
return array_keys($tests);
}