diff --git a/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php b/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php
index 7b9bd1c40e..a0d49a3664 100644
--- a/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php
@@ -101,6 +101,11 @@ public function providerTestInvalidAbsolute() {
       '',
       'ex!ample.com',
       'ex%ample.com',
+      '-',
+      '-example.com',
+      'example-.com',
+      'example.-com',
+      'example.com-',
     ];
     return $this->dataEnhanceWithScheme($data);
   }
