protected function MenuRouterTest::doTestExoticPath in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Menu/MenuRouterTest.php \Drupal\system\Tests\Menu\MenuRouterTest::doTestExoticPath()
Test path containing "exotic" characters.
1 call to MenuRouterTest::doTestExoticPath()
- MenuRouterTest::testMenuIntegration in core/
modules/ system/ src/ Tests/ Menu/ MenuRouterTest.php - Tests menu integration.
File
- core/
modules/ system/ src/ Tests/ Menu/ MenuRouterTest.php, line 201 - Contains \Drupal\system\Tests\Menu\MenuRouterTest.
Class
- MenuRouterTest
- Tests menu router and default menu link functionality.
Namespace
Drupal\system\Tests\MenuCode
protected function doTestExoticPath() {
$path = "menu-test/ -._~!\$'\"()*@[]?&+%#,;=:" . "%23%25%26%2B%2F%3F" . "éøïвβ中國書۞";
// Characters from various non-ASCII alphabets.
$this
->drupalGet($path);
$this
->assertRaw('This is the menuTestCallback content.');
$this
->assertNoText(t('The website encountered an unexpected error. Please try again later.'));
}