]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3242 removed metastring clean up in one of the unit tests
authorCash Costello <cash.costello@gmail.com>
Sat, 16 Jun 2012 15:47:16 +0000 (11:47 -0400)
committerCash Costello <cash.costello@gmail.com>
Sat, 16 Jun 2012 15:47:16 +0000 (11:47 -0400)
engine/tests/api/metadata.php

index 2461e975e1151e0f8b6dc4da6f6057aa201a99cc..244036f80fe562842c2ad7dd01341df709e4c9e8 100644 (file)
@@ -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)");
-       }
 }