diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-30 20:59:14 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-30 20:59:14 +0000 |
commit | c9c73cec5c1f4ba333d44f7751eeb7e7e606bbe8 (patch) | |
tree | a6dea6af4e8b33f2bec1d51aa636515b35b83c55 /engine/tests/objects/users.php | |
parent | d5ea193dfb80cd5d35d02428363f9ce18aa01205 (diff) | |
download | elgg-c9c73cec5c1f4ba333d44f7751eeb7e7e606bbe8.tar.gz elgg-c9c73cec5c1f4ba333d44f7751eeb7e7e606bbe8.tar.bz2 |
Deprecating get_entities_from_access_id().
git-svn-id: http://code.elgg.org/elgg/trunk@3610 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, 10 insertions, 0 deletions
diff --git a/engine/tests/objects/users.php b/engine/tests/objects/users.php index 358a80f1c..ace683a82 100644 --- a/engine/tests/objects/users.php +++ b/engine/tests/objects/users.php @@ -152,6 +152,16 @@ class ElggCoreUserTest extends ElggCoreUnitTest { $this->user->delete(); } + public function testElggUserDelete() { + $guid = $this->user->save(); + + // delete object + $this->assertTrue($this->user->delete()); + + // check GUID not in database + $this->assertFalse($this->fetchUser($guid)); + } + protected function fetchUser($guid) { global $CONFIG; |