summaryrefslogtreecommitdiff
path: root/tests/prepare.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/prepare.php')
-rw-r--r--tests/prepare.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/prepare.php b/tests/prepare.php
index 6afc284..c80306e 100644
--- a/tests/prepare.php
+++ b/tests/prepare.php
@@ -16,7 +16,9 @@
/**
* Prepare the application for unit testing
*/
+//that's needed in constants.php
$_SERVER['HTTP_HOST'] = 'http://localhost/';
+
define('UNIT_TEST_MODE', true);
if ('@data_dir@' == '@' . 'data_dir@') {