function PathLanguageUiTest::testDefaultLanguageUrl in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/path/src/Tests/PathLanguageUiTest.php \Drupal\path\Tests\PathLanguageUiTest::testDefaultLanguageUrl()
Tests that a default language URL alias works.
File
- core/
modules/ path/ src/ Tests/ PathLanguageUiTest.php, line 59 - Contains \Drupal\path\Tests\PathLanguageUiTest.
Class
- PathLanguageUiTest
- Confirm that the Path module user interface works with languages.
Namespace
Drupal\path\TestsCode
function testDefaultLanguageUrl() {
$name = $this
->randomMachineName(8);
$edit = array();
$edit['source'] = '/admin/config/search/path';
$edit['alias'] = '/' . $name;
$edit['langcode'] = 'en';
$this
->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
$this
->drupalGet($name);
$this
->assertText(t('Filter aliases'), 'English URL alias works');
}