public function Pathautoi18nTaxonomyTest::testCustomAliasTaxonomy in Pathauto i18n 8
Test taxonomy terms with custom alias for certain language.
File
- src/
Tests/ Pathautoi18nTaxonomyTest.php, line 60 - Tests for the pathauto_i18n taxonomy module.
Class
- Pathautoi18nTaxonomyTest
- Pathauto i18n test functionality for taxonomy.
Namespace
Drupal\pathauto_i18n\TestsCode
public function testCustomAliasTaxonomy() {
/*$custom_alias = 'custom/' . $this->title;
$neutral_alias = 'neutral/' . $this->title;
$this->createTaxonomyTerm(TRUE, TRUE, $custom_alias);
// Check aliases and custom alias.
$this->drupalGet('admin/config/search/path');
foreach ($this->availableLanguages as $language) {
$alias = $language . '/' . $this->title;
$this->assertText($alias, 0, "Exist alias '$alias' for language '$language'.");
}
$this->assertText($custom_alias, 0, "Exist custom alias '$custom_alias'.");
$this->assertNoText($neutral_alias, 0, "Alias '$neutral_alias' for undefined language not exist.");*/
}