aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/_bootstrap.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-05-16 11:05:47 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2024-05-16 11:05:47 +0000
commitefaeea07319c63be2f2c6a8bd076e4de8ac8f11d (patch)
treeb6c4f4f976cee1e156f8f9dd0fec39a9f09e6242 /tests/functional/_bootstrap.php
parentbb2278c43c4992c2cc0fc2d468ad98a395e13962 (diff)
relocate flexi, fixes #4101
Closes #4101 Merge request studip/studip!2977
Diffstat (limited to 'tests/functional/_bootstrap.php')
-rw-r--r--tests/functional/_bootstrap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/_bootstrap.php b/tests/functional/_bootstrap.php
index 8a9125b..1745a1a 100644
--- a/tests/functional/_bootstrap.php
+++ b/tests/functional/_bootstrap.php
@@ -34,6 +34,7 @@ StudipAutoloader::addAutoloadPath($STUDIP_BASE_PATH . '/lib/classes/cache');
StudipAutoloader::addAutoloadPath($STUDIP_BASE_PATH . '/lib/classes/cache', 'Studip');
StudipAutoloader::addAutoloadPath($STUDIP_BASE_PATH . '/lib/exceptions');
StudipAutoloader::addAutoloadPath($STUDIP_BASE_PATH . '/lib/exceptions/resources');
+StudipAutoloader::addAutoloadPath($STUDIP_BASE_PATH . '/lib/flexi', 'Flexi');
StudipAutoloader::addAutoloadPath($STUDIP_BASE_PATH . '/lib/filesystem');
StudipAutoloader::addAutoloadPath($STUDIP_BASE_PATH . '/lib/migrations');
StudipAutoloader::addAutoloadPath($STUDIP_BASE_PATH . '/lib/models');
@@ -64,8 +65,7 @@ require 'vendor/email_message/email_message.php';
require 'vendor/email_message/debug_message.php';
StudipMail::setDefaultTransporter(new debug_message_class());
-require_once 'vendor/flexi/lib/flexi.php';
-$GLOBALS['template_factory'] = new Flexi_TemplateFactory(dirname(dirname(__DIR__)) . '/templates');
+$GLOBALS['template_factory'] = new Flexi\Factory(dirname(dirname(__DIR__)) . '/templates');
// Disable caching to fallback to memory cache
$GLOBALS['CACHING_ENABLE'] = false;