public function Pathautoi18nNodeTest::testCustomAliasLanguageSelected in Pathauto i18n 8
Test nodes with custom alias for certain language.
File
- src/
Tests/ Pathautoi18nNodeTest.php, line 59 - Tests for the pathauto_i18n node module.
Class
- Pathautoi18nNodeTest
- Pathauto i18n test functionality for nodes.
Namespace
Drupal\pathauto_i18n\TestsCode
public function testCustomAliasLanguageSelected() {
/*$custom_alias = 'custom/' . $this->title;
$this->createNode($this->contentLanguage, TRUE, FALSE, $custom_alias);
// Check aliases and custom alias.
$this->drupalGet('admin/config/search/path');
foreach ($this->availableLanguages as $language) {
if ($language == 'en') {
$alias = $language . '/' . $this->title;
$this->assertText($custom_alias, 0, "Exist custom alias '$custom_alias'.");
$this->assertNoText($alias, 0, "Alias '$alias' for language '$language' not exist.");
}
else {
$alias = $language . '/' . $this->title;
$this->assertText($alias, 0, "Exist alias '$alias' for language '$language'.");
}
}*/
}