Implements hook_init().
function system_test_init() {
// Used by FrontPageTestCase to get the results of drupal_is_front_page().
$frontpage = state()
->get('system_test.front_page_output') ?: 0;
if ($frontpage && drupal_is_front_page()) {
drupal_set_message(t('On front page.'));
}
}