aboutsummaryrefslogtreecommitdiff
path: root/tests/jsonapi/FileRefsCreateTest.php
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2024-08-28 16:00:20 +0000
committerMurtaza Sultani <sultani@data-quest.de>2024-09-17 16:42:23 +0200
commit235eff13639f6bfa59a171b2a143d4580cbc2ae4 (patch)
treebefe568012ca0b6888278e8298a7aae6ccf4aec6 /tests/jsonapi/FileRefsCreateTest.php
parentddac9b3e59410dafcb18c680a1000958036ed610 (diff)
Prevent root folder uploads by students in courses, re #3745
Merge request studip/studip!2608
Diffstat (limited to 'tests/jsonapi/FileRefsCreateTest.php')
-rw-r--r--tests/jsonapi/FileRefsCreateTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/jsonapi/FileRefsCreateTest.php b/tests/jsonapi/FileRefsCreateTest.php
index fe14b9f..239dfb9 100644
--- a/tests/jsonapi/FileRefsCreateTest.php
+++ b/tests/jsonapi/FileRefsCreateTest.php
@@ -21,6 +21,8 @@ class FileRefsCreateTest extends \Codeception\Test\Unit
protected function _before()
{
\DBManager::getInstance()->setConnection('studip', $this->getModule('\\Helper\\StudipDb')->dbh);
+ $GLOBALS['SEM_TYPE'] = SemType::getTypes();
+ $GLOBALS['SEM_CLASS'] = SemClass::getClasses();
}
protected function _after()