You are here

public function Pathautoi18nUserTest::testUserAlias in Pathauto i18n 7

Test user alias.

File

tests/pathauto_i18n_user.test, line 46

Class

Pathautoi18nUserTest
Test functionality for user.

Code

public function testUserAlias() {
  drupal_static_reset('pathauto_pattern_load_by_entity');
  $this
    ->createUser();

  // Check aliases.
  $this
    ->drupalGet('admin/config/search/path/list/users');
  foreach ($this->availableLanguages as $language) {
    $alias = $language . '/users/' . $this->title;
    $this
      ->assertText($alias, 0, "Exist alias '{$alias}' for language '{$language}'.");
  }
}