aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/tests/api/metadata.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/tests/api/metadata.php b/engine/tests/api/metadata.php
index c63b0cbec..9933263d1 100644
--- a/engine/tests/api/metadata.php
+++ b/engine/tests/api/metadata.php
@@ -28,7 +28,8 @@ class ElggCoreMetadataAPITest extends ElggCoreUnitTest {
public function testGetMetastringById() {
foreach (array('metaUnitTest', 'metaunittest', 'METAUNITTEST') as $string) {
- // in case previous tests failed to cleanup after themselves
+ // since there is no guarantee that metastrings are garbage collected
+ // between unit test runs, we delete before testing
$this->delete_metastrings($string);
$this->create_metastring($string);
}