function system_test_drupal_get_filename
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 548
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 '';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.