diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-08 19:27:58 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-08 19:27:58 +0000 |
commit | 1368785a6b6f9c946dcc5eca078540bacce71f60 (patch) | |
tree | 1aa0857127ef2f21cc2e64a608d94359da172bab /engine/tests/objects/users.php | |
parent | 9074f002ad0603014c90b12aaaf2c51d740638e9 (diff) | |
download | elgg-1368785a6b6f9c946dcc5eca078540bacce71f60.tar.gz elgg-1368785a6b6f9c946dcc5eca078540bacce71f60.tar.bz2 |
Refs #2543: Core uses the new functions from previous commit.
git-svn-id: http://code.elgg.org/elgg/trunk@8078 36083f99-b078-4883-b0ff-0f9b5a30f544
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']); } |