public function UnroutedUrlTest::providerFromInvalidUri in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/UnroutedUrlTest.php \Drupal\Tests\Core\UnroutedUrlTest::providerFromInvalidUri()
Data provider for testFromInvalidUri().
File
- core/tests/ Drupal/ Tests/ Core/ UnroutedUrlTest.php, line 117 
- Contains \Drupal\Tests\Core\UnroutedUrlTest.
Class
- UnroutedUrlTest
- @coversDefaultClass \Drupal\Core\Url @group UrlTest
Namespace
Drupal\Tests\CoreCode
public function providerFromInvalidUri() {
  return [
    // Schemeless paths.
    [
      'test',
    ],
    [
      '/test',
    ],
    [
      '//test',
    ],
    // Schemeless path with a query string.
    [
      'foo?bar',
    ],
    // Only a query string.
    [
      '?bar',
    ],
    // Only a fragment.
    [
      '#foo',
    ],
    // Disallowed characters in the authority (host name) that are valid
    // elsewhere in the path.
    [
      'base://(:;2&+h^',
    ],
    [
      'base://AKI@&hO@',
    ],
  ];
}