diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-18 06:42:45 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-28 21:43:59 -0500 |
commit | 3de7c03c391897f04fde7e86296221122de882f5 (patch) | |
tree | ea16aa358a70a8650eac7271d6b9f2e59792a57a /engine/tests/objects/sites.php | |
parent | 76be18d640fed252546fbb5da99b6dea5e127cac (diff) | |
download | elgg-3de7c03c391897f04fde7e86296221122de882f5.tar.gz elgg-3de7c03c391897f04fde7e86296221122de882f5.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()); } } |