You are here

public function Pathautoi18nTaxonomyTest::testAutomaticAliasTaxonomy in Pathauto i18n 7

Test taxonomy terms with automatic alias.

File

tests/pathauto_i18n_taxonomy.test, line 48

Class

Pathautoi18nTaxonomyTest
Test functionality for taxonomy.

Code

public function testAutomaticAliasTaxonomy() {
  $this
    ->createTaxonomyTerm(TRUE, TRUE);

  // Check aliases.
  $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}'.");
  }
}