You are here

function date_api_simpletest in Date 6

Same name and namespace in other branches
  1. 5.2 date_api.module \date_api_simpletest()
  2. 5 date_api.module \date_api_simpletest()
  3. 6.2 date_api.module \date_api_simpletest()

Implementation of hook_simpletest().

File

./date_api.module, line 1310
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

Code

function date_api_simpletest() {
  $dir = drupal_get_path('module', 'date_api') . '/tests';
  $tests = file_scan_directory($dir, '\\.test$');
  return array_keys($tests);
}