Fixes tests

main
Yasen Pramatarov 2026-01-20 23:48:47 +02:00
parent 3b50d81fb4
commit 9127f97cc9
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,11 @@ if (!headers_sent()) {
ini_set('session.gc_maxlifetime', 1440); // 24 minutes
}
// Define APP_PATH for components that expect the constant
if (!defined('APP_PATH')) {
define('APP_PATH', dirname(__DIR__) . '/app/');
}
// load the main App registry and plugin route registry
require_once __DIR__ . '/../app/core/App.php';
require_once __DIR__ . '/../app/core/PluginRouteRegistry.php';