aboutsummaryrefslogtreecommitdiff
path: root/tests/jsonapi
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-01-05 09:17:55 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-01-05 09:17:55 +0000
commit1eb58c143460343ec2a5cda7ef11d8cc39c07529 (patch)
tree07337ae554c522ab5cf24b5f14fcf6def30966fc /tests/jsonapi
parent4a2977016d1a589c9f05ce0721afc6dd433a9454 (diff)
use php 7.4 as minimum version and adjust system accordingly, fixes #3123
Closes #3123 Merge request studip/studip!2110
Diffstat (limited to 'tests/jsonapi')
-rw-r--r--tests/jsonapi/BlubberThreadsShowTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/jsonapi/BlubberThreadsShowTest.php b/tests/jsonapi/BlubberThreadsShowTest.php
index 910338d..932b768 100644
--- a/tests/jsonapi/BlubberThreadsShowTest.php
+++ b/tests/jsonapi/BlubberThreadsShowTest.php
@@ -11,10 +11,15 @@ class BlubberThreadsShowTest extends \Codeception\Test\Unit
*/
protected $tester;
+ protected $csrf_storage = [];
+
protected function _before()
{
\DBManager::getInstance()->setConnection('studip', $this->getModule('\\Helper\\StudipDb')->dbh);
+
+ CSRFProtection::setStorage($this->csrf_storage);
+
// Create global template factory if neccessary
$has_template_factory = isset($GLOBALS['template_factory']);
if (!$has_template_factory) {