You are here

function SearchByPageIntlTest::setupPath in Search by Page 6

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

Sets up SBP Paths with a path to index.

File

tests/search_by_page.test, line 3116
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/settings/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');
}