diff --git a/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
index 61cc25a11b191bee2598779ae3c8427d6350beea..a2b25987c923ad325efffe76ba73cacd36f06695 100644
--- a/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
+++ b/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
@@ -1263,6 +1263,7 @@ final class GeneralUtilityTest extends UnitTestCase
     //////////////////////////////////
     // Tests concerning isOnCurrentHost
     //////////////////////////////////
+
     /**
      * @test
      */
@@ -1275,9 +1276,9 @@ final class GeneralUtilityTest extends UnitTestCase
     /**
      * Data provider for invalid isOnCurrentHost's
      *
-     * @return array Invalid Hosts
+     * @return array<string, array{0: string}>
      */
-    public function checkisOnCurrentHostInvalidHosts(): array
+    public static function checkisOnCurrentHostInvalidHostsDataProvider(): array
     {
         return [
             'empty string' => [''],
@@ -1289,6 +1290,16 @@ final class GeneralUtilityTest extends UnitTestCase
         ];
     }
 
+    /**
+     * @test
+     *
+     * @dataProvider checkisOnCurrentHostInvalidHostsDataProvider
+     */
+    public function isOnCurrentHostWithNotCurrentHostReturnsFalse(string $hostCandidate): void
+    {
+        self::assertFalse(GeneralUtility::isOnCurrentHost($hostCandidate));
+    }
+
     ////////////////////////////////////////
     // Tests concerning sanitizeLocalUrl
     ////////////////////////////////////////