diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-18 06:42:45 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-11-18 06:42:45 -0500 |
commit | 51e2a993373b9f39c1c2b7f308dd308d320feb0a (patch) | |
tree | ac8af23ba55eb59c75c60dec80029671a4709827 /engine/tests/objects/sites.php | |
parent | e1b2cf3b9499f0a5a649e4695f7a26d3a3bf6ddb (diff) | |
download | elgg-51e2a993373b9f39c1c2b7f308dd308d320feb0a.tar.gz elgg-51e2a993373b9f39c1c2b7f308dd308d320feb0a.tar.bz2 |
Fixes #4108 delete() returns bool now and updated unit tests
Diffstat (limited to 'engine/tests/objects/sites.php')
-rw-r--r-- | engine/tests/objects/sites.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/tests/objects/sites.php b/engine/tests/objects/sites.php index e5acbb3f9..a05074c59 100644 --- a/engine/tests/objects/sites.php +++ b/engine/tests/objects/sites.php @@ -66,8 +66,10 @@ class ElggCoreSiteTest extends ElggCoreUnitTest { } public function testElggSiteSaveAndDelete() { - $this->assertTrue($this->site->save()); - $this->assertTrue($this->site->delete()); + $guid = $this->site->save(); + $this->assertIsA($guid, 'int'); + $this->assertTrue($guid > 0); + $this->assertIdentical(true, $this->site->delete()); } } |