diff options
Diffstat (limited to 'tests/functional/lib/models/resources/LocationTest.php')
| -rw-r--r-- | tests/functional/lib/models/resources/LocationTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/lib/models/resources/LocationTest.php b/tests/functional/lib/models/resources/LocationTest.php index ba18e7e..97b139c 100644 --- a/tests/functional/lib/models/resources/LocationTest.php +++ b/tests/functional/lib/models/resources/LocationTest.php @@ -49,7 +49,7 @@ class LocationTest extends \Codeception\Test\Unit // Workaround old-style Stud.IP-API using $GLOBALS['user'] $this->oldUser = $GLOBALS['user']; $GLOBALS['user'] = new \Seminar_User( - \User::build(['user_id' => 'cli', 'username' => 'cli', 'perms' => 'autor'], false) + \User::findByUsername('root@studip') ); //As a final step we create the SORM objects for our test cases: |
