diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 0e81f4372a..229a6ee82b 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -12,6 +12,8 @@
 */
 
 define('IN_PHPBB', true);
+define('PHPBB_ENVIRONMENT', 'production');
+
 $phpbb_root_path = 'phpBB/';
 $phpEx = 'php';
 require_once $phpbb_root_path . 'includes/startup.php';
diff --git a/tests/controller/config/routing.yml b/tests/controller/config/production/routing.yml
similarity index 100%
rename from tests/controller/config/routing.yml
rename to tests/controller/config/production/routing.yml
diff --git a/tests/pagination/config/routing.yml b/tests/pagination/config/production/routing.yml
similarity index 100%
rename from tests/pagination/config/routing.yml
rename to tests/pagination/config/production/routing.yml