diff options
Diffstat (limited to 'tests/jsonapi/SeminarCycleDatesShowTest.php')
| -rw-r--r-- | tests/jsonapi/SeminarCycleDatesShowTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/jsonapi/SeminarCycleDatesShowTest.php b/tests/jsonapi/SeminarCycleDatesShowTest.php index 2953577..46f8b93 100644 --- a/tests/jsonapi/SeminarCycleDatesShowTest.php +++ b/tests/jsonapi/SeminarCycleDatesShowTest.php @@ -45,8 +45,8 @@ class SeminarCycleDatesShowTest extends \Codeception\Test\Unit private function createSeminarCycleDate($credentials, \Course $course) { // EVIL HACK - $oldUser = $GLOBALS['user']; - $oldAuth = $GLOBALS['auth']; + $oldUser = $GLOBALS['user'] ?? null; + $oldAuth = $GLOBALS['auth'] ?? null; $GLOBALS['user'] = new \Seminar_User( \User::find($credentials['id']) |
