diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-01-05 09:17:55 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-01-05 09:17:55 +0000 |
| commit | 1eb58c143460343ec2a5cda7ef11d8cc39c07529 (patch) | |
| tree | 07337ae554c522ab5cf24b5f14fcf6def30966fc /tests | |
| parent | 4a2977016d1a589c9f05ce0721afc6dd433a9454 (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')
| -rw-r--r-- | tests/jsonapi/BlubberThreadsShowTest.php | 5 |
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) { |
