diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-09-27 07:49:10 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-09-27 07:49:10 +0000 |
| commit | 174f11c56e1ce36296e49549da357db7022bf25e (patch) | |
| tree | e1411291d0e7c32e65cf865c10acbba15ed3b037 /tests/functional/lib/models/resources/ResourceAssignmentTest.php | |
| parent | 81e32c0b8c6f8b6ab94a4cd271e6b308efeb3c5f (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.php | 4 |
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: |
