diff options
Diffstat (limited to 'engine/tests/objects/users.php')
-rw-r--r-- | engine/tests/objects/users.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/tests/objects/users.php b/engine/tests/objects/users.php index c0566c9b4..ba93c2439 100644 --- a/engine/tests/objects/users.php +++ b/engine/tests/objects/users.php @@ -49,8 +49,8 @@ class ElggCoreUserTest extends ElggCoreUnitTest { $attributes['guid'] = NULL; $attributes['type'] = 'user'; $attributes['subtype'] = NULL; - $attributes['owner_guid'] = get_loggedin_userid(); - $attributes['container_guid'] = get_loggedin_userid(); + $attributes['owner_guid'] = elgg_get_logged_in_user_guid(); + $attributes['container_guid'] = elgg_get_logged_in_user_guid(); $attributes['site_guid'] = NULL; $attributes['access_id'] = ACCESS_PRIVATE; $attributes['time_created'] = NULL; @@ -98,7 +98,7 @@ class ElggCoreUserTest extends ElggCoreUnitTest { } public function testElggUserConstructorByGuid() { - $user = new ElggUser(get_loggedin_userid()); + $user = new ElggUser(elgg_get_logged_in_user_guid()); $this->assertIdentical($user, $_SESSION['user']); // fail with garbage @@ -113,13 +113,13 @@ class ElggCoreUserTest extends ElggCoreUnitTest { } public function testElggUserConstructorByDbRow() { - $row = $this->fetchUser(get_loggedin_userid()); + $row = $this->fetchUser(elgg_get_logged_in_user_guid()); $user = new ElggUser($row); $this->assertIdentical($user, $_SESSION['user']); } public function testElggUserConstructorByUsername() { - $row = $this->fetchUser(get_loggedin_userid()); + $row = $this->fetchUser(elgg_get_logged_in_user_guid()); $user = new ElggUser($row->username); $this->assertIdentical($user, $_SESSION['user']); } |