You are here

protected function MenuRouterTest::doTestExoticPath in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\MenuRouterTest::doTestExoticPath()

Test path containing "exotic" characters.

1 call to MenuRouterTest::doTestExoticPath()
MenuRouterTest::testMenuIntegration in core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php
Tests menu integration.

File

core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php, line 194

Class

MenuRouterTest
Tests menu router and default menu link functionality.

Namespace

Drupal\Tests\system\Functional\Menu

Code

protected function doTestExoticPath() {

  // "Special" ASCII characters.
  $path = "menu-test/ -._~!\$'\"()*@[]?&+%#,;=:" . "%23%25%26%2B%2F%3F" . "éøïвβ中國書۞";
  $this
    ->drupalGet($path);
  $this
    ->assertRaw('This is the menuTestCallback content.');
  $this
    ->assertNoText(t('The website encountered an unexpected error. Please try again later.'));
}