function PathLanguageUITestCase::testNonDefaultURLs
7.x path.test | PathLanguageUITestCase::testNonDefaultURLs() |
Tests that a non-default language URL alias works.
File
- drupal-7.x/
modules/ path/ path.test, line 463 - Tests for the Path module.
Class
- PathLanguageUITestCase
- Tests the user interface for creating path aliases, with languages.
Code
function testNonDefaultURLs() {
$name = $this->randomName(8);
$edit = array();
$edit['source'] = 'admin/config/search/path';
$edit['alias'] = $name;
$edit['language'] = 'fr';
$this->drupalPost('admin/config/search/path/add', $edit, t('Save'));
$this->drupalGet('fr/' . $name);
$this->assertText(t('Filter aliases'), 'Foreign URL alias works');
}