You are here

function SearchByPageIntlTest::setupPath in Search by Page 7

Same name and namespace in other branches
  1. 6 tests/search_by_page.test \SearchByPageIntlTest::setupPath()

Sets up SBP Paths with a path to index.

File

tests/search_by_page.test, line 3036
Tests for the Search by Page module. By Jennifer Hodgdon of Poplar ProductivityWare, www.poplarware.com

Class

SearchByPageIntlTest
Environment internationalization test.

Code

function setupPath() {
  $path_add_path = 'admin/config/search/search_by_page/edit/' . $this->envid1 . '/paths/add';
  $this->envinfo1['path_title'] = t('Public page title');
  $this->envinfo1['path_type'] = t('Public page type');
  $this->envinfo1['path_snippet'] = t('Public page snippet');
  $this
    ->drupalPost($path_add_path, array(
    'path' => 'sbp_test_pub_page',
    'title' => $this->envinfo1['path_title'],
    'type' => $this->envinfo1['path_type'],
    'snippet' => $this->envinfo1['path_snippet'],
    'role' => $this
      ->getNewRoleID($this->superuser),
    'languages[en]' => 'en',
    'languages[' . $this->lang_to_use . ']' => $this->lang_to_use,
  ), 'Create new indexed page');
}