diff options
Diffstat (limited to 'tests')
| -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() |
