You are here

private function GoogleCSETestCase::setupGoogleCSEAsDefaultSearch in Google Custom Search Engine 7.3

Same name and namespace in other branches
  1. 7.2 tests/google_cse.test \GoogleCSETestCase::setupGoogleCSEAsDefaultSearch()

Setup search variables as most Google CSE users will.

1 call to GoogleCSETestCase::setupGoogleCSEAsDefaultSearch()
GoogleCSETestCase::testDisabledSearchModuleConfig in tests/google_cse.test
Tests all SiteSearch configuration options.

File

tests/google_cse.test, line 119
Google CSE module tests.

Class

GoogleCSETestCase
@file Google CSE module tests.

Code

private function setupGoogleCSEAsDefaultSearch() {

  // Set variable for Drupal to use CSE as default search option.
  // We will explicitly define it with the other search module options.
  variable_set('search_active_modules', array(
    'google_cse' => 'google_cse',
    'node' => 'node',
    'user' => 'user',
  ));
  variable_set('search_default_module', 'google_cse');
}