aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-13 00:24:42 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-13 00:24:42 +0000
commit6766085309ba6c5eba1397789d9c030cf2db73bc (patch)
tree8f3849951aee6ed74a1d1dafa564135b4ef51fe9 /engine
parent014ba7d5c18172db7ff6940df12f0a785c9acbdb (diff)
downloadelgg-6766085309ba6c5eba1397789d9c030cf2db73bc.tar.gz
elgg-6766085309ba6c5eba1397789d9c030cf2db73bc.tar.bz2
Cleaning up database after new ElggEntity unit test.
git-svn-id: http://code.elgg.org/elgg/trunk@7302 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/tests/objects/entities.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/tests/objects/entities.php b/engine/tests/objects/entities.php
index 1f1f6d2b4..954b4947f 100644
--- a/engine/tests/objects/entities.php
+++ b/engine/tests/objects/entities.php
@@ -215,7 +215,8 @@ class ElggCoreEntityTest extends ElggCoreUnitTest {
$this->assertTrue($this->entity->less_important = 'true, too!');
$this->save_entity();
- // test deleting incorrectly: Ticket #2273
+ // test deleting incorrectly
+ // @link http://trac.elgg.org/ticket/2273
$this->assertFalse($this->entity->clearMetaData('impotent'));
$this->assertEqual($this->entity->important, 'indeed!');
@@ -227,6 +228,9 @@ class ElggCoreEntityTest extends ElggCoreUnitTest {
// get rid of all metadata
$this->assertTrue($this->entity->clearMetaData());
$this->assertEqual($this->entity->less_important, '');
+
+ // clean up database
+ $this->assertTrue($this->entity->delete());
}
public function testElggEntityExportables() {