From 9127f97cc9f5aa0d79def9270b6251b047e22054 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Tue, 20 Jan 2026 23:48:47 +0200 Subject: [PATCH] Fixes tests --- tests/bootstrap.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 7b2e6b8..a5a0da2 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -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';