From 4bfdf830306bfa3411bd1ccc1b92812f9916e69b Mon Sep 17 00:00:00 2001
From: Christian Kuhn <lolli@schwarzbu.ch>
Date: Fri, 26 Nov 2021 10:18:32 +0100
Subject: [PATCH] [BUGFIX] Speed up linkvalidator functional tests
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The ext:linkvalidator functional tests work with a
fictional domain name to test if the code finds broken
external links.

This can be unfortunate since it triggers DNS lookups
that can be slow - such stuff should be avoided in
functional tests anyway.

Solution is to use localhost as test domain with an
invalid path instead. This is more expressive, too.

The result can be stunning: My DNS resolver for whatever
reason takes ages to (not) resolve that domain using
dockerized runTests.sh. I got a similar result from
another coredev. The linkvalidator tests run nearly
five minutes without the patch and are down to two
seconds with patch.

Resolves: #96087
Releases: master, 11.5
Change-Id: Idbb32ac57925c52d4cef9e8d412d56347f09a04e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72312
Tested-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 ...tput_content_with_broken_link_external.csv |  2 +-
 ...tput_content_with_broken_links_several.csv |  4 ++--
 ...ontent_with_broken_links_several_pages.csv |  4 ++--
 ...broken_link_external_in_canonical_link.csv |  2 +-
 ...nput_content_with_broken_link_external.xml |  2 +-
 ...nput_content_with_broken_links_several.xml |  4 ++--
 ...ontent_with_broken_links_several_pages.xml |  4 ++--
 ...broken_link_external_in_canonical_link.xml |  2 +-
 .../Repository/BrokenLinkRepositoryTest.php   | 24 +++++++++----------
 .../Functional/Repository/Fixtures/input.xml  |  4 ++--
 .../Repository/Fixtures/input_languages.xml   |  6 ++---
 .../Fixtures/input_permissions_group.xml      |  2 +-
 .../Fixtures/input_permissions_user_2.xml     |  2 +-
 .../Fixtures/input_permissions_user_3.xml     |  4 ++--
 .../Fixtures/input_permissions_user_4.xml     |  4 ++--
 .../Fixtures/input_permissions_user_5.xml     |  4 ++--
 ...nput_permissions_user_6_explicit_allow.xml |  4 ++--
 17 files changed, 39 insertions(+), 39 deletions(-)

diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_content_with_broken_link_external.csv b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_content_with_broken_link_external.csv
index c89d17876129..fc66b52cf51a 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_content_with_broken_link_external.csv
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_content_with_broken_link_external.csv
@@ -1,3 +1,3 @@
 "tx_linkvalidator_link",,,,,,,
 ,"record_uid","record_pid","field","table_name","link_title","url","link_type"
-,1,1,"bodytext","tt_content","link","https://sfsfsfsfdfsfsdfsf/sfdsfsds","external"
+,1,1,"bodytext","tt_content","link","http://localhost/iAmInvalid","external"
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_content_with_broken_links_several.csv b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_content_with_broken_links_several.csv
index 732349c3f20a..0a459efa8c20 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_content_with_broken_links_several.csv
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_content_with_broken_links_several.csv
@@ -1,7 +1,7 @@
 "tx_linkvalidator_link",,,,,,,
 ,"record_uid","record_pid","field","table_name","link_title","url","link_type"
-,1,1,"bodytext","tt_content","link","https://sfsfsfsfdfsfsdfsf/sfdsfsds","external"
-,2,1,"bodytext","tt_content","link","https://sfsfsfsfdfsfsdfsf/sfdsfsds","external"
+,1,1,"bodytext","tt_content","link","http://localhost/iAmInvalid","external"
+,2,1,"bodytext","tt_content","link","http://localhost/iAmInvalid","external"
 ,3,1,"bodytext","tt_content","broken link",85,"db"
 ,4,1,"bodytext","tt_content","broken link",8555555,"db"
 ,5,1,"bodytext","tt_content","broken link","file:88","file"
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_content_with_broken_links_several_pages.csv b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_content_with_broken_links_several_pages.csv
index 33476099719d..5bfb07f8a46d 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_content_with_broken_links_several_pages.csv
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_content_with_broken_links_several_pages.csv
@@ -1,7 +1,7 @@
 "tx_linkvalidator_link",,,,,,,
 ,"record_uid","record_pid","field","table_name","link_title","url","link_type"
-,1,1,"bodytext","tt_content","link","https://sfsfsfsfdfsfsdfsf/sfdsfsds","external"
-,2,2,"bodytext","tt_content","link","https://sfsfsfsfdfsfsdfsf/sfdsfsds","external"
+,1,1,"bodytext","tt_content","link","http://localhost/iAmInvalid","external"
+,2,2,"bodytext","tt_content","link","http://localhost/iAmInvalid","external"
 ,3,1,"bodytext","tt_content","broken link",85,"db"
 ,4,2,"bodytext","tt_content","broken link",8555555,"db"
 ,5,1,"bodytext","tt_content","broken link","file:88","file"
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_with_broken_link_external_in_canonical_link.csv b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_with_broken_link_external_in_canonical_link.csv
index 667e8f760d73..ffe86f3363cf 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_with_broken_link_external_in_canonical_link.csv
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/expected_output_with_broken_link_external_in_canonical_link.csv
@@ -1,3 +1,3 @@
 "tx_linkvalidator_link",,,,,,,
 ,"record_uid","record_pid","field","table_name","link_title","url","link_type"
-,1,0,"canonical_link","pages",,"https://sfsfsfsfdfsfsdfsf/sfdsfsds","external"
+,1,0,"canonical_link","pages",,"http://localhost/iAmInvalid","external"
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_content_with_broken_link_external.xml b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_content_with_broken_link_external.xml
index 3b498c93e4eb..fc80045a0315 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_content_with_broken_link_external.xml
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_content_with_broken_link_external.xml
@@ -7,7 +7,7 @@
     <tt_content>
         <uid>1</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
     </tt_content>
 </dataset>
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_content_with_broken_links_several.xml b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_content_with_broken_links_several.xml
index 8eedba1fba99..7a8b6fcd15d2 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_content_with_broken_links_several.xml
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_content_with_broken_links_several.xml
@@ -8,13 +8,13 @@
     <tt_content>
         <uid>1</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
     </tt_content>
     <tt_content>
         <uid>2</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
     </tt_content>
 
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_content_with_broken_links_several_pages.xml b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_content_with_broken_links_several_pages.xml
index 46293eccedfc..b4ee5005f119 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_content_with_broken_links_several_pages.xml
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_content_with_broken_links_several_pages.xml
@@ -12,13 +12,13 @@
     <tt_content>
         <uid>1</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
     </tt_content>
     <tt_content>
         <uid>2</uid>
         <pid>2</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
     </tt_content>
 
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_page_with_broken_link_external_in_canonical_link.xml b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_page_with_broken_link_external_in_canonical_link.xml
index 7b36856da1a4..f3a8f696d8a2 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_page_with_broken_link_external_in_canonical_link.xml
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Fixtures/input_page_with_broken_link_external_in_canonical_link.xml
@@ -3,6 +3,6 @@
     <pages>
         <uid>1</uid>
         <pid>0</pid>
-        <canonical_link>https://sfsfsfsfdfsfsdfsf/sfdsfsds</canonical_link>
+        <canonical_link>http://localhost/iAmInvalid</canonical_link>
     </pages>
 </dataset>
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php b/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php
index 2b21bbd1c6c6..6f620b5bc409 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php
@@ -376,7 +376,7 @@ class BrokenLinkRepositoryTest extends FunctionalTestCase
                    'table_name' => 'tt_content',
                    'element_type' => 'textmedia',
                    'link_title' => 'link',
-                   'url' => 'https://sfsfsfsfdfsfsdfsf/sfdsfsds',
+                   'url' => 'http://localhost/iAmInvalid',
                    'link_type' => 'external',
                    'needs_recheck' => 0,
                 ],
@@ -389,7 +389,7 @@ class BrokenLinkRepositoryTest extends FunctionalTestCase
                     'table_name' => 'tt_content',
                     'element_type' => 'textmedia',
                     'link_title' => null,
-                    'url' => 'https://sfsfsfsfdfsfsdfsf/sfdsfsds',
+                    'url' => 'http://localhost/iAmInvalid',
                     'link_type' => 'external',
                     'needs_recheck' => 0,
                 ],
@@ -463,7 +463,7 @@ class BrokenLinkRepositoryTest extends FunctionalTestCase
                     'table_name' => 'tt_content',
                     'element_type' => 'textmedia',
                     'link_title' => 'link',
-                    'url' => 'https://sfsfsfsfdfsfsdfsf/sfdsfsds',
+                    'url' => 'http://localhost/iAmInvalid',
                     'link_type' => 'external',
                     'needs_recheck' => 0,
                 ],
@@ -514,7 +514,7 @@ class BrokenLinkRepositoryTest extends FunctionalTestCase
                     'table_name' => 'tt_content',
                     'element_type' => 'textmedia',
                     'link_title' => 'link',
-                    'url' => 'https://sfsfsfsfdfsfsdfsf/sfdsfsds',
+                    'url' => 'http://localhost/iAmInvalid',
                     'link_type' => 'external',
                     'needs_recheck' => 0,
                 ],
@@ -527,7 +527,7 @@ class BrokenLinkRepositoryTest extends FunctionalTestCase
                     'table_name' => 'tt_content',
                     'element_type' => 'textmedia',
                     'link_title' => null,
-                    'url' => 'https://sfsfsfsfdfsfsdfsf/sfdsfsds',
+                    'url' => 'http://localhost/iAmInvalid',
                     'link_type' => 'external',
                     'needs_recheck' => 0,
                 ],
@@ -578,7 +578,7 @@ class BrokenLinkRepositoryTest extends FunctionalTestCase
                     'table_name' => 'tt_content',
                     'element_type' => 'textmedia',
                     'link_title' => 'link',
-                    'url' => 'https://sfsfsfsfdfsfsdfsf/sfdsfsds',
+                    'url' => 'http://localhost/iAmInvalid',
                     'link_type' => 'external',
                     'needs_recheck' => 0,
                 ],
@@ -604,7 +604,7 @@ class BrokenLinkRepositoryTest extends FunctionalTestCase
                     'table_name' => 'tt_content',
                     'element_type' => 'textmedia',
                     'link_title' => 'link',
-                    'url' => 'https://sfsfsfsfdfsfsdfsf/sfdsfsds',
+                    'url' => 'http://localhost/iAmInvalid',
                     'link_type' => 'external',
                     'needs_recheck' => 0,
                 ],
@@ -682,7 +682,7 @@ class BrokenLinkRepositoryTest extends FunctionalTestCase
                     'table_name' => 'tt_content',
                     'element_type' => 'textmedia',
                     'link_title' => 'link',
-                    'url' => 'https://sfsfsfsfdfsfsdfsf/sfdsfsds',
+                    'url' => 'http://localhost/iAmInvalid',
                     'link_type' => 'external',
                 ],
                 [
@@ -694,7 +694,7 @@ class BrokenLinkRepositoryTest extends FunctionalTestCase
                     'table_name' => 'tt_content',
                     'element_type' => 'textmedia',
                     'link_title' => 'link',
-                    'url' => 'https://sfsfsfsfdfsfsdfsf/sfdsfsds',
+                    'url' => 'http://localhost/iAmInvalid',
                     'link_type' => 'external',
                 ],
                 [
@@ -706,7 +706,7 @@ class BrokenLinkRepositoryTest extends FunctionalTestCase
                     'table_name' => 'tt_content',
                     'element_type' => 'textmedia',
                     'link_title' => 'link',
-                    'url' => 'https://sfsfsfsfdfsfsdfsf/sfdsfsds',
+                    'url' => 'http://localhost/iAmInvalid',
                     'link_type' => 'external',
                 ],
             ],
@@ -733,7 +733,7 @@ class BrokenLinkRepositoryTest extends FunctionalTestCase
                     'table_name' => 'tt_content',
                     'element_type' => 'textmedia',
                     'link_title' => 'link',
-                    'url' => 'https://sfsfsfsfdfsfsdfsf/sfdsfsds',
+                    'url' => 'http://localhost/iAmInvalid',
                     'link_type' => 'external',
                 ],
                 [
@@ -745,7 +745,7 @@ class BrokenLinkRepositoryTest extends FunctionalTestCase
                     'table_name' => 'tt_content',
                     'element_type' => 'textmedia',
                     'link_title' => 'link',
-                    'url' => 'https://sfsfsfsfdfsfsdfsf/sfdsfsds',
+                    'url' => 'http://localhost/iAmInvalid',
                     'link_type' => 'external',
                 ],
             ],
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input.xml b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input.xml
index 7dd9c7e3dc44..fa5954898e91 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input.xml
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input.xml
@@ -8,13 +8,13 @@
     <tt_content>
         <uid>1</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
     </tt_content>
     <tt_content>
         <uid>2</uid>
         <pid>1</pid>
-        <header_link>https://sfsfsfsfdfsfsdfsf/sfdsfsds</header_link>
+        <header_link>http://localhost/iAmInvalid</header_link>
         <CType>textmedia</CType>
     </tt_content>
 
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_languages.xml b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_languages.xml
index 391139643668..2b6739bfe6d9 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_languages.xml
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_languages.xml
@@ -22,7 +22,7 @@
     <tt_content>
         <uid>1</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
         <l18n_parent>0</l18n_parent>
         <sys_language_uid>0</sys_language_uid>
@@ -30,7 +30,7 @@
     <tt_content>
         <uid>2</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
         <l18n_parent>1</l18n_parent>
         <sys_language_uid>1</sys_language_uid>
@@ -38,7 +38,7 @@
     <tt_content>
         <uid>3</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
         <l18n_parent>1</l18n_parent>
         <sys_language_uid>2</sys_language_uid>
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_group.xml b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_group.xml
index d29a39db86a3..12ab3bf057b0 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_group.xml
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_group.xml
@@ -12,7 +12,7 @@
     <tt_content>
         <uid>1</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
     </tt_content>
 
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_2.xml b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_2.xml
index c45d3aad8172..75747f08f56e 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_2.xml
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_2.xml
@@ -12,7 +12,7 @@
     <tt_content>
         <uid>1</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
     </tt_content>
 
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_3.xml b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_3.xml
index b9eb96931d2d..8c3fbecc7906 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_3.xml
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_3.xml
@@ -12,13 +12,13 @@
     <tt_content>
         <uid>1</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
     </tt_content>
     <tt_content>
         <uid>2</uid>
         <pid>1</pid>
-        <header_link>https://sfsfsfsfdfsfsdfsf/sfdsfsds</header_link>
+        <header_link>http://localhost/iAmInvalid</header_link>
         <CType>textmedia</CType>
     </tt_content>
 
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_4.xml b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_4.xml
index 9aebe00c5636..689474a8dc33 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_4.xml
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_4.xml
@@ -12,13 +12,13 @@
     <tt_content>
         <uid>1</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
     </tt_content>
     <tt_content>
         <uid>2</uid>
         <pid>1</pid>
-        <header_link>https://sfsfsfsfdfsfsdfsf/sfdsfsds</header_link>
+        <header_link>http://localhost/iAmInvalid</header_link>
         <CType>textmedia</CType>
     </tt_content>
 
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_5.xml b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_5.xml
index e69790676137..9e1f8ee852a0 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_5.xml
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_5.xml
@@ -12,7 +12,7 @@
     <tt_content>
         <uid>1</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
         <sys_language_uid>0</sys_language_uid>
     </tt_content>
@@ -21,7 +21,7 @@
     <tt_content>
         <uid>2</uid>
         <pid>1</pid>
-        <header_link>https://sfsfsfsfdfsfsdfsf/sfdsfsds</header_link>
+        <header_link>http://localhost/iAmInvalid</header_link>
         <CType>textmedia</CType>
         <sys_language_uid>1</sys_language_uid>
     </tt_content>
diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_6_explicit_allow.xml b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_6_explicit_allow.xml
index 7624e10cdb3c..8c7229f0d540 100644
--- a/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_6_explicit_allow.xml
+++ b/typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_6_explicit_allow.xml
@@ -12,7 +12,7 @@
     <tt_content>
         <uid>1</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textmedia</CType>
     </tt_content>
 
@@ -20,7 +20,7 @@
     <tt_content>
         <uid>2</uid>
         <pid>1</pid>
-        <bodytext>&lt;p&gt;&lt;a href=&quot;https://sfsfsfsfdfsfsdfsf/sfdsfsds&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
+        <bodytext>&lt;p&gt;&lt;a href=&quot;http://localhost/iAmInvalid&quot;&gt;link&lt;/a&gt;&lt;/p&gt;</bodytext>
         <CType>textpic</CType>
     </tt_content>
 </dataset>
-- 
GitLab