summaryrefslogtreecommitdiff
path: root/includes/engelsystem_provider.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2015-06-07 13:45:47 +0200
committerPhilip Häusler <msquare@notrademark.de>2015-06-07 13:45:47 +0200
commitc6c0e8f2ff590fd5b23159d2f1de219dbb000505 (patch)
tree8092fc8a980e4f9b7179cda886e63394be419781 /includes/engelsystem_provider.php
parent218b305a3e6b94c7a5bd551f67fe6d9bb05d5e79 (diff)
fix test running
Diffstat (limited to 'includes/engelsystem_provider.php')
-rw-r--r--includes/engelsystem_provider.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/engelsystem_provider.php b/includes/engelsystem_provider.php
index 56d12de6..1fe06e77 100644
--- a/includes/engelsystem_provider.php
+++ b/includes/engelsystem_provider.php
@@ -71,7 +71,9 @@ require_once realpath(__DIR__ . '/../includes/pages/user_shifts.php');
require_once realpath(__DIR__ . '/../vendor/parsedown/Parsedown.php');
-session_lifetime(24 * 60, preg_replace("/[^a-z0-9-]/", '', md5(__DIR__)));
+if (! defined('PHPUNIT_TESTSUITE')) {
+ session_lifetime(24 * 60, preg_replace("/[^a-z0-9-]/", '', md5(__DIR__)));
+}
session_start();
gettext_init();