You are here

public function SearchByPageIntlTest::setUpLanguages in Search by Page 8

Sets up languages for this test.

1 call to SearchByPageIntlTest::setUpLanguages()
SearchByPageIntlTest::setUp in tests/src/Functional/search_by_page.test

File

tests/src/Functional/search_by_page.test, line 2716
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\Functional

Code

public function setUpLanguages() {
  $lang = $this->lang_to_use;

  // Add the language.
  $this
    ->drupalPostForm('admin/config/regional/language/add', array(
    'langcode' => $lang,
  ), t('Add language'));

  // Set up path prefix language negotiation.
  $this
    ->drupalPostForm('admin/config/regional/language/configure', array(
    'language[enabled][locale-url]' => 1,
  ), t('Save settings'));
}