diff --git a/tests/modules/core/lib/ControllerTest.php b/tests/modules/core/lib/ControllerTest.php
index ec77b3651f334f2d3be67d47fe562a5d6a2a5827..ff7c959f8555efea2b7056efcacea1d17b31ffc5 100644
--- a/tests/modules/core/lib/ControllerTest.php
+++ b/tests/modules/core/lib/ControllerTest.php
@@ -98,6 +98,7 @@ class ControllerTest extends ClearStateTestCase
      */
     public function testMultipleAuthSources()
     {
+        $_SERVER['REQUEST_URI'] = '/';
         $asConfig = Configuration::loadFromArray(
             array_merge(
                 $this->authSources,