You are here

protected function LanguageCookieLanguageSelectionPageTest::setUp in Language Cookie 8

Overrides LanguageCookieTestBase::setUp

File

tests/src/Functional/LanguageCookieLanguageSelectionPageTest.php, line 30

Class

LanguageCookieLanguageSelectionPageTest
Test that the language_cookie module works well with language_selection_page.

Namespace

Drupal\Tests\language_cookie\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->drupalGet('admin/config/regional/language/detection');
  $this
    ->submitForm([
    'language_interface[enabled][' . LanguageNegotiationCookie::METHOD_ID . ']' => FALSE,
    'language_interface[enabled][' . LanguageCookieFixedNegotiation::METHOD_ID . ']' => FALSE,
    'language_interface[enabled][language-selection-page]' => 1,
    'language_interface[enabled][language-url]' => 1,
  ], 'Save settings');
}