diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2024-08-28 16:00:20 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2024-08-28 16:00:20 +0000 |
| commit | 642a2172a6a965cae5e6bf481382d70e6a4b7e67 (patch) | |
| tree | 9f69d46b4f18653a3ae190fea59cfcdbd0654b54 /tests | |
| parent | d380495e4f39bd86d8ca9df18656bb919aa237d0 (diff) | |
Prevent root folder uploads by students in courses, re #3745
Merge request studip/studip!2608
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/jsonapi/FileRefsCreateTest.php | 2 |
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() |
