From bd2d492f2616489a40a0f3ed90ea5e6558117fc8 Mon Sep 17 00:00:00 2001 From: nickw Date: Tue, 27 Oct 2009 21:58:25 +0000 Subject: Modifying user file locations to be based on guid. Previous implementations utilized the owner's username to determine a file path matrix based on (up to) the first five letters. To eliminate language and filesystem inconsistencies, the matrix is now created from the entity's creation date and guid. This has the added benefit of (potentially) allowing users to update their usernames. git-svn-id: http://code.elgg.org/elgg/trunk@3590 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/tests/objects/users.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'engine/tests/objects/users.php') diff --git a/engine/tests/objects/users.php b/engine/tests/objects/users.php index 5c88e4ece..358a80f1c 100644 --- a/engine/tests/objects/users.php +++ b/engine/tests/objects/users.php @@ -142,6 +142,16 @@ class ElggCoreUserTest extends ElggCoreUnitTest { $object->delete(); } + public function testElggUserSave() { + // new object + $this->AssertEqual($this->user->getGUID(), 0); + $guid = $this->user->save(); + $this->AssertNotEqual($guid, 0); + + // clean up + $this->user->delete(); + } + protected function fetchUser($guid) { global $CONFIG; -- cgit v1.2.3