summaryrefslogtreecommitdiffstats
path: root/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php')
-rw-r--r--core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php b/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php
index 0477b7a..9480a7e 100644
--- a/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php
@@ -358,6 +358,10 @@ class UrlHelperTest extends UnitTestCase {
array('/internal/path', FALSE),
array('https://example.com/external/path', TRUE),
array('javascript://fake-external-path', FALSE),
+ // External URL without an explicit protocol.
+ array('//drupal.org/foo/bar?foo=bar&bar=baz&baz#foo', TRUE),
+ // Internal URL starting with a slash.
+ array('/drupal.org', FALSE),
);
}