public function SearchByPageIntlTest::setUpLanguages in Search by Page 7
Same name and namespace in other branches
- 6 tests/search_by_page.test \SearchByPageIntlTest::setUpLanguages()
Sets up languages for this test.
1 call to SearchByPageIntlTest::setUpLanguages()
- SearchByPageIntlTest::setUp in tests/
search_by_page.test - Sets up a Drupal site for running functional and integration tests.
File
- tests/
search_by_page.test, line 3017 - Tests for the Search by Page module. By Jennifer Hodgdon of Poplar ProductivityWare, www.poplarware.com
Class
- SearchByPageIntlTest
- Environment internationalization test.
Code
public function setUpLanguages() {
$lang = $this->lang_to_use;
// Add the language.
$this
->drupalPost('admin/config/regional/language/add', array(
'langcode' => $lang,
), t('Add language'));
// Set up path prefix language negotiation.
$this
->drupalPost('admin/config/regional/language/configure', array(
'language[enabled][locale-url]' => 1,
), t('Save settings'));
}