public function ContentLanguageAccessContentDetectionEnabledTest::setUp in Content Language Access 8
Implements setUp().
Overrides ContentLanguageAccessTestBase::setUp
File
- src/
Tests/ ContentLanguageAccessContentDetectionEnabledTest.php, line 22
Class
- ContentLanguageAccessContentDetectionEnabledTest
- Test the features of content_language_access with content language detection enabled.
Namespace
Drupal\content_language_access\TestsCode
public function setUp() {
parent::setUp();
// Enable content language detection.
$edit = [
// Disable interface language detection.
'language_interface[enabled][language-url]' => FALSE,
// Content language detection: only using URL.
'language_content[configurable]' => TRUE,
'language_content[enabled][language-url]' => TRUE,
'language_content[enabled][language-interface]' => FALSE,
];
$this
->drupalPostForm('admin/config/regional/language/detection', $edit, t('Save settings'));
}