private function GoogleCSETestCase::setupGoogleCSESearchPage in Google Custom Search Engine 7.2
Same name and namespace in other branches
- 7.3 tests/google_cse.test \GoogleCSETestCase::setupGoogleCSESearchPage()
Sets up a search block on "/node/1".
1 call to GoogleCSETestCase::setupGoogleCSESearchPage()
- GoogleCSETestCase::testSiteSearchSettingsConfig in tests/
google_cse.test - Tests all SiteSearch configuration options.
File
- tests/
google_cse.test, line 125 - 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'));
}