aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lib/models/resources/RoomTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/lib/models/resources/RoomTest.php')
-rw-r--r--tests/functional/lib/models/resources/RoomTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/lib/models/resources/RoomTest.php b/tests/functional/lib/models/resources/RoomTest.php
index 82611f2..8dd30a4 100644
--- a/tests/functional/lib/models/resources/RoomTest.php
+++ b/tests/functional/lib/models/resources/RoomTest.php
@@ -61,11 +61,11 @@ class RoomTest extends \Codeception\Test\Unit
\DBManager::getInstance()->setConnection('studip', $this->db_handle);
// 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: