function PathLanguageUITestCase::testDefaultLanguageURLs
Tests that a default language URL alias works.
File
-
modules/
path/ path.test, line 527
Class
- PathLanguageUITestCase
- Tests the user interface for creating path aliases, with languages.
Code
function testDefaultLanguageURLs() {
$name = $this->randomName(8);
$edit = array();
$edit['source'] = 'admin/config/search/path';
$edit['alias'] = $name;
$edit['language'] = 'en';
$this->drupalPost('admin/config/search/path/add', $edit, t('Save'));
$this->drupalGet($name);
$this->assertText(t('Filter aliases'), 'English URL alias works');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.