function system_test_drupal_get_filename in Drupal 7
Page callback to run drupal_get_filename() on a particular module.
1 string reference to 'system_test_drupal_get_filename'
- system_test_menu in modules/
simpletest/ tests/ system_test.module - Implements hook_menu().
File
- modules/
simpletest/ tests/ system_test.module, line 503
Code
function system_test_drupal_get_filename() {
// Prevent SimpleTest from failing as a result of the expected PHP warnings
// this function causes. Any warnings will be recorded in the database logs
// for examination by the tests.
define('SIMPLETEST_COLLECT_ERRORS', FALSE);
$module_name = variable_get('system_test_drupal_get_filename_test_module_name');
drupal_get_filename('module', $module_name);
return '';
}