You are here

public function Pathautoi18nNodeTest::testCleanString in Pathauto i18n 8

Test clearing of string.

File

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

Class

Pathautoi18nNodeTest
Pathauto i18n test functionality for nodes.

Namespace

Drupal\pathauto_i18n\Tests

Code

public function testCleanString() {

  /*// Set appropriate title which will allow us remove parts of path.
      $initial_title = $this->title;
      $this->title .= ' ' . implode(' ', $this->availableLanguages);

      $this->setCleanStringSettings();
      $this->createNode($this->contentLanguage, TRUE, TRUE);

      // Check aliases.
      $this->drupalGet('admin/config/search/path');
      foreach ($this->availableLanguages as $language) {
        $suffix = $this->getCleanStringSuffix($language);
        $alias = $language . '/' . $initial_title . '/' . $suffix;
        $this->assertNoText($alias, 0, "Exist alias '$alias' for language '$language' with excluded string '$language'.");
      }*/
}