public function Pathautoi18nNodeTest::testAutomaticAliasLanguageSelected in Pathauto i18n 7
Test nodes with automatic alias for certain language.
1 call to Pathautoi18nNodeTest::testAutomaticAliasLanguageSelected()
- Pathautoi18nNodeTest::testAutomaticAliasUndefinedLanguage in tests/
pathauto_i18n_node.test - Test nodes with automatic alias for undefined language.
File
- tests/
pathauto_i18n_node.test, line 46
Class
- Pathautoi18nNodeTest
- Test functionality for nodes.
Code
public function testAutomaticAliasLanguageSelected() {
$this
->createNode($this->contentLanguage, 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}'.");
}
}