aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lib/models/resources/ResourceAssignmentTest.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-09-27 07:49:10 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-09-27 07:49:10 +0000
commit174f11c56e1ce36296e49549da357db7022bf25e (patch)
treee1411291d0e7c32e65cf865c10acbba15ed3b037 /tests/functional/lib/models/resources/ResourceAssignmentTest.php
parent81e32c0b8c6f8b6ab94a4cd271e6b308efeb3c5f (diff)
fixes #3207
Closes #3207 Merge request studip/studip!2174
Diffstat (limited to 'tests/functional/lib/models/resources/ResourceAssignmentTest.php')
-rw-r--r--tests/functional/lib/models/resources/ResourceAssignmentTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/lib/models/resources/ResourceAssignmentTest.php b/tests/functional/lib/models/resources/ResourceAssignmentTest.php
index f2c2fcd..87fbde7 100644
--- a/tests/functional/lib/models/resources/ResourceAssignmentTest.php
+++ b/tests/functional/lib/models/resources/ResourceAssignmentTest.php
@@ -52,11 +52,11 @@ class ResourceAssignmentTest extends \Codeception\Test\Unit
\Config::get()->setValue('LOG_ENABLE', false);
// Workaround old-style Stud.IP-API using $GLOBALS['user']
- $this->oldUser = $GLOBALS['user'];
+ $this->oldUser = $GLOBALS['user'] ?? null;
$GLOBALS['user'] = new \Seminar_User(
\User::findByUsername('root@studip')
);
- $this->oldPerm = $GLOBALS['perm'];
+ $this->oldPerm = $GLOBALS['perm'] ?? null;
$GLOBALS['perm'] = new \Seminar_Perm();
//As a final step we create the SORM objects for our test cases: