diff options
Diffstat (limited to 'modules/simpletest/tests/system_test.module')
-rw-r--r-- | modules/simpletest/tests/system_test.module | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/simpletest/tests/system_test.module b/modules/simpletest/tests/system_test.module index fadc05e3c..dfe25bbf8 100644 --- a/modules/simpletest/tests/system_test.module +++ b/modules/simpletest/tests/system_test.module @@ -150,6 +150,16 @@ function system_test_boot() { } /** + * Implementation of hook_init(). + */ +function system_test_init() { + // Used by FrontPageTestCase to get the results of drupal_is_front_page(). + if (variable_get('front_page_output', 0) && drupal_is_front_page()) { + drupal_set_message(t('On front page.')); + } +} + +/** * Implementation of hook_exit(). */ function system_test_exit() { |