function SearchByPageIntlTest::setupPath in Search by Page 8
Sets up SBP Paths with a path to index.
File
- tests/
src/ Functional/ search_by_page.test, line 2735 - Tests for the Search by Page module. By Jennifer Hodgdon of Poplar ProductivityWare, www.poplarware.com
Class
- SearchByPageIntlTest
- Environment internationalization test.
Namespace
Drupal\Tests\search_by_page\FunctionalCode
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
->drupalPostForm($path_add_path, array(
'path' => 'search_by_page_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');
}