diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-02-01 13:04:35 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-02-01 13:04:35 +0000 |
| commit | 60c69f2ab1e5a81eb2196821e5aa932df8e5f6cf (patch) | |
| tree | 5a6f0c4c075a40e4bf54b3f114283a1a0ef618db /tests/jsonapi | |
| parent | 9fb1d55009f0c9c7c84398eb3a152e5398acc7ca (diff) | |
use correct avatar, fixes #3700
Closes #3700
Merge request studip/studip!2569
Diffstat (limited to 'tests/jsonapi')
| -rw-r--r-- | tests/jsonapi/CourseShowTest.php | 3 | ||||
| -rw-r--r-- | tests/jsonapi/CoursesByUserTest.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/jsonapi/CourseShowTest.php b/tests/jsonapi/CourseShowTest.php index e1acf92..d2c953c 100644 --- a/tests/jsonapi/CourseShowTest.php +++ b/tests/jsonapi/CourseShowTest.php @@ -13,6 +13,9 @@ class CourseShowTest extends \Codeception\Test\Unit protected function _before() { \DBManager::getInstance()->setConnection('studip', $this->getModule('\\Helper\\StudipDb')->dbh); + //Initialize $SEM_TYPE and $SEM_CLASS arrays + $GLOBALS['SEM_CLASS'] = SemClass::getClasses(); + $GLOBALS['SEM_TYPE'] = SemType::getTypes(); } protected function _after() diff --git a/tests/jsonapi/CoursesByUserTest.php b/tests/jsonapi/CoursesByUserTest.php index 9947405..00307a7 100644 --- a/tests/jsonapi/CoursesByUserTest.php +++ b/tests/jsonapi/CoursesByUserTest.php @@ -13,6 +13,9 @@ class CoursesByUserTest extends \Codeception\Test\Unit protected function _before() { \DBManager::getInstance()->setConnection('studip', $this->getModule('\\Helper\\StudipDb')->dbh); + //Initialize $SEM_TYPE and $SEM_CLASS arrays + $GLOBALS['SEM_CLASS'] = SemClass::getClasses(); + $GLOBALS['SEM_TYPE'] = SemType::getTypes(); } protected function _after() |
