From 2cca8ff1c95d0dcffaa0c821c1062088646fae3a Mon Sep 17 00:00:00 2001 From: gggeek Date: Thu, 24 Nov 2022 11:16:38 +0000 Subject: [PATCH] try to increase test coverage --- debugger/action.php | 3 +++ debugger/controller.php | 3 +++ debugger/index.php | 4 ++++ tests/ci/config/apache_vhost | 1 + 4 files changed, 11 insertions(+) diff --git a/debugger/action.php b/debugger/action.php index 7e35a22e..bd192e1e 100644 --- a/debugger/action.php +++ b/debugger/action.php @@ -9,6 +9,8 @@ * @todo be smarter in creating client stub for proxy/auth cases: only set appropriate property of client obj **/ +if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_prepend.php"; + header('Content-Type: text/html; charset=utf-8'); ?> @@ -563,3 +565,4 @@ if ($action) { ?> + diff --git a/debugger/controller.php b/debugger/controller.php index 1501ac03..5a800906 100644 --- a/debugger/controller.php +++ b/debugger/controller.php @@ -14,6 +14,8 @@ * @todo if js libs are not available, do not try to load them **/ +if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_prepend.php"; + // Make sure we set the correct charset type for output, so that we can display all characters header('Content-Type: text/html; charset=utf-8'); @@ -359,3 +361,4 @@ $editorlibs = (defined('JSXMLRPC_PATH') ? JSXMLRPC_PATH : '../..') . '/jsxmlrpc/ + diff --git a/debugger/index.php b/debugger/index.php index e7e8bec6..18c74189 100644 --- a/debugger/index.php +++ b/debugger/index.php @@ -1,4 +1,7 @@ + diff --git a/tests/ci/config/apache_vhost b/tests/ci/config/apache_vhost index 9852f684..90735f5b 100644 --- a/tests/ci/config/apache_vhost +++ b/tests/ci/config/apache_vhost @@ -51,6 +51,7 @@ # Env vars used by the test code, which we get from the environment SetEnv HTTPSERVER ${HTTPSERVER} + SetEnv TESTMODE true Options FollowSymLinks MultiViews -- 2.47.0