diff options
Diffstat (limited to 'engine/tests/objects/users.php')
-rw-r--r-- | engine/tests/objects/users.php | 10 |
1 files changed, 10 insertions, 0 deletions
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; |