You are here

public function SearchByPageIntlTest::setUpLanguages in Search by Page 6

Same name and namespace in other branches
  1. 7 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
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…

File

tests/search_by_page.test, line 3097
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/settings/language/add', array(
    'langcode' => $lang,
  ), t('Add language'));

  // Set up path prefix language negotiation.
  $this
    ->drupalPost('admin/settings/language/configure', array(
    'language_negotiation' => 1,
  ), t('Save settings'));
}