aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-16 11:47:16 -0400
committerCash Costello <cash.costello@gmail.com>2012-06-16 11:47:16 -0400
commitc58102ebcf60334f6902ba1df1aaee7104f6ba0d (patch)
treebe23d49aba8ee0fed3ca2e76d726daca84c556ce /engine
parentace4852849efafe39531ddf15c8281070d9b6950 (diff)
downloadelgg-c58102ebcf60334f6902ba1df1aaee7104f6ba0d.tar.gz
elgg-c58102ebcf60334f6902ba1df1aaee7104f6ba0d.tar.bz2
Fixes #3242 removed metastring clean up in one of the unit tests
Diffstat (limited to 'engine')
-rw-r--r--engine/tests/api/metadata.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/engine/tests/api/metadata.php b/engine/tests/api/metadata.php
index 2461e975e..244036f80 100644
--- a/engine/tests/api/metadata.php
+++ b/engine/tests/api/metadata.php
@@ -43,9 +43,6 @@ class ElggCoreMetadataAPITest extends ElggCoreUnitTest {
{
$this->assertTrue(in_array($string, $this->metastrings));
}
-
- // clean up
- $this->delete_metastrings();
}
public function testElggGetEntitiesFromMetadata() {
@@ -77,7 +74,6 @@ class ElggCoreMetadataAPITest extends ElggCoreUnitTest {
// clean up
$this->object->delete();
- $this->delete_metastrings();
}
public function testElggGetMetadataCount() {
@@ -206,12 +202,4 @@ class ElggCoreMetadataAPITest extends ElggCoreUnitTest {
mysql_query("INSERT INTO {$CONFIG->dbprefix}metastrings (string) VALUES ('$string')");
$this->metastrings[$string] = mysql_insert_id();
}
-
- protected function delete_metastrings() {
- global $CONFIG, $METASTRINGS_CACHE, $METASTRINGS_DEADNAME_CACHE;
- $METASTRINGS_CACHE = $METASTRINGS_DEADNAME_CACHE = array();
-
- $strings = implode(', ', $this->metastrings);
- mysql_query("DELETE FROM {$CONFIG->dbprefix}metastrings WHERE id IN ($strings)");
- }
}