]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/front/controller/visitor/FrontControllerMockHelper.php
Fix subfolder configuration in unit tests
[github/shaarli/Shaarli.git] / tests / front / controller / visitor / FrontControllerMockHelper.php
index e0bd4ecf5d14cd426546caf94893873f75c55fc2..fe6ac9b0c246241d16053d7a77546d5daed234e3 100644 (file)
@@ -79,8 +79,9 @@ trait FrontControllerMockHelper
         $this->container->environment = [
             'SERVER_NAME' => 'shaarli',
             'SERVER_PORT' => '80',
-            'REQUEST_URI' => '/daily-rss',
+            'REQUEST_URI' => '/subfolder/daily-rss',
             'REMOTE_ADDR' => '1.2.3.4',
+            'SCRIPT_NAME' => '/subfolder/index.php',
         ];
 
         $this->container->basePath = '/subfolder';