You are here

function db_maintenance_simpletest in DB Maintenance 5

Same name and namespace in other branches
  1. 5.2 db_maintenance.module \db_maintenance_simpletest()

Implementation of hook_simpletest().

File

./db_maintenance.module, line 272
Optimizes database tables during cron runs.

Code

function db_maintenance_simpletest() {

  // Scan through mymodule/tests directory for any .test files to tell SimpleTest module.
  $tests = file_scan_directory(drupal_get_path('module', 'db_maintenance') . '/tests', '\\.test');
  return array_keys($tests);
}