protected function PathautoLocaleTest::enableArticleTranslation in Pathauto 8
Enables content translation on articles.
2 calls to PathautoLocaleTest::enableArticleTranslation()
- PathautoLocaleTest::testLanguageNotApplicable in tests/
src/ FunctionalJavascript/ PathautoLocaleTest.php - Tests the alias created for a node with language Not Applicable.
- PathautoLocaleTest::testLanguagePatterns in tests/
src/ FunctionalJavascript/ PathautoLocaleTest.php - Test that patterns work on multilingual content.
File
- tests/
src/ FunctionalJavascript/ PathautoLocaleTest.php, line 209
Class
- PathautoLocaleTest
- Test pathauto functionality with localization and translation.
Namespace
Drupal\Tests\pathauto\FunctionalJavascriptCode
protected function enableArticleTranslation() {
// Enable content translation on articles.
$this
->drupalGet('admin/config/regional/content-language');
$edit = [
'entity_types[node]' => TRUE,
'settings[node][article][translatable]' => TRUE,
'settings[node][article][settings][language][language_alterable]' => TRUE,
];
$this
->drupalPostForm(NULL, $edit, t('Save configuration'));
}