added unit tests

This commit is contained in:
2026-06-04 21:40:59 +02:00
parent d80a8de559
commit 48a619ee4b
64 changed files with 3807 additions and 33 deletions

View File

@ -3,8 +3,15 @@
// Shared helpers for opening, creating, and saving the encrypted SQLite database.
require_once __DIR__ . '/common.php';
define('QDB_PATH', __DIR__ . '/uploads/questionnaire_database');
define('QDB_LOCK', __DIR__ . '/uploads/.qdb_lock');
if (defined('QDB_TEST_UPLOADS')) {
define('QDB_UPLOADS_DIR', QDB_TEST_UPLOADS);
define('QDB_PATH', QDB_UPLOADS_DIR . '/questionnaire_database');
define('QDB_LOCK', QDB_UPLOADS_DIR . '/.qdb_lock');
} else {
define('QDB_UPLOADS_DIR', __DIR__ . '/uploads');
define('QDB_PATH', QDB_UPLOADS_DIR . '/questionnaire_database');
define('QDB_LOCK', QDB_UPLOADS_DIR . '/.qdb_lock');
}
define('QDB_SCHEMA', __DIR__ . '/schema.sql');
define('QDB_VERSION', 6);