@@ -102,7 +102,7 @@ public function testAdjustRewriteBaseHtaccessUpdatesErrorDocumentWithRootPath():
102102<IfModule mod_rewrite.c>
103103 RewriteEngine On
104104 RewriteBase /phpmyfaq-test/
105- ErrorDocument 404 /phpmyfaq-test/index.php?action= 404
105+ ErrorDocument 404 /404.html
106106</IfModule>
107107HTACCESS;
108108 file_put_contents ($ htaccessPath , $ htaccessContent );
@@ -115,7 +115,7 @@ public function testAdjustRewriteBaseHtaccessUpdatesErrorDocumentWithRootPath():
115115
116116 // Read the .htaccess file and verify ErrorDocument 404 is set correctly
117117 $ htaccessContent = file_get_contents ($ htaccessPath );
118- $ this ->assertStringContainsString ('ErrorDocument 404 /index.php?action= 404 ' , $ htaccessContent );
118+ $ this ->assertStringContainsString ('ErrorDocument 404 /404.html ' , $ htaccessContent );
119119 }
120120
121121 /**
@@ -130,7 +130,7 @@ public function testAdjustRewriteBaseHtaccessUpdatesErrorDocumentWithSubdirector
130130<IfModule mod_rewrite.c>
131131 RewriteEngine On
132132 RewriteBase /
133- ErrorDocument 404 /index.php?action= 404
133+ ErrorDocument 404 /404.html
134134</IfModule>
135135HTACCESS;
136136 file_put_contents ($ htaccessPath , $ htaccessContent );
@@ -143,6 +143,6 @@ public function testAdjustRewriteBaseHtaccessUpdatesErrorDocumentWithSubdirector
143143
144144 // Read the .htaccess file and verify ErrorDocument 404 is set correctly
145145 $ htaccessContent = file_get_contents ($ htaccessPath );
146- $ this ->assertStringContainsString ('ErrorDocument 404 /faq/index.php?action= 404 ' , $ htaccessContent );
146+ $ this ->assertStringContainsString ('ErrorDocument 404 /faq/404.html ' , $ htaccessContent );
147147 }
148148}
0 commit comments