function PathLanguageUiTest::testLanguageNeutralUrl
Same name in other branches
- 9 core/modules/path/tests/src/Functional/PathLanguageUiTest.php \Drupal\Tests\path\Functional\PathLanguageUiTest::testLanguageNeutralUrl()
- 8.9.x core/modules/path/tests/src/Functional/PathLanguageUiTest.php \Drupal\Tests\path\Functional\PathLanguageUiTest::testLanguageNeutralUrl()
- 10 core/modules/path/tests/src/Functional/PathLanguageUiTest.php \Drupal\Tests\path\Functional\PathLanguageUiTest::testLanguageNeutralUrl()
Tests that a language-neutral URL alias works.
File
-
core/
modules/ path/ tests/ src/ Functional/ PathLanguageUiTest.php, line 59
Class
- PathLanguageUiTest
- Confirm that the Path module user interface works with languages.
Namespace
Drupal\Tests\path\FunctionalCode
public function testLanguageNeutralUrl() : void {
$name = $this->randomMachineName(8);
$edit = [];
$edit['path[0][value]'] = '/admin/config/search/path';
$edit['alias[0][value]'] = '/' . $name;
$this->drupalGet('admin/config/search/path/add');
$this->submitForm($edit, 'Save');
$this->drupalGet($name);
$this->assertSession()
->pageTextContains('Filter aliases');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.