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