You are here

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

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

Sets up a search block on "/node/1".

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

File

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

Class

GoogleCSETestCase
@file Google CSE module tests.

Code

private function setupGoogleCSESearchPage() {
  $edit = array();
  $edit['name'] = 'CSE';
  $edit['type'] = 'cse';
  $this
    ->drupalPost('admin/structure/types/add', $edit, t('Save content type'));
  $edit = array();
  $edit['title'] = 'Google CSE';
  $this
    ->drupalPost('node/add/cse', $edit, t('Save'));
  $edit = array();
  $edit['types[cse]'] = TRUE;
  $edit['regions[bartik]'] = 'content';
  $this
    ->drupalPost('admin/structure/block/manage/google_cse/google_cse/configure', $edit, t('Save block'));
}