You are here

public function Pathautoi18nNodeTest::testCustomAliasUndefinedLanguage in Pathauto i18n 8

Test nodes with custom alias for undefined language.

File

src/Tests/Pathautoi18nNodeTest.php, line 90
Tests for the pathauto_i18n node module.

Class

Pathautoi18nNodeTest
Pathauto i18n test functionality for nodes.

Namespace

Drupal\pathauto_i18n\Tests

Code

public function testCustomAliasUndefinedLanguage() {

  /*$custom_alias = 'custom/' . $this->title;
      $neutral_alias = 'neutral/' . $this->title;
      $this->createNode(LANGUAGE_NONE, TRUE, FALSE, $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.");*/
}