aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2012-11-14 22:30:05 -0500
committerSteve Clay <steve@mrclay.org>2012-11-14 22:30:05 -0500
commit28b76dca0de501efb2c908afb9b239f0f3c4a4d6 (patch)
tree6460e58b792817e5d2df7a35fed0fc473406da44
parent4f9fb7df0dabfa470e1f7045428c5e47a6ce3919 (diff)
downloadelgg-28b76dca0de501efb2c908afb9b239f0f3c4a4d6.tar.gz
elgg-28b76dca0de501efb2c908afb9b239f0f3c4a4d6.tar.bz2
Prevent false testElggDeleteMetadata() failures
-rw-r--r--engine/tests/api/metadata.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/tests/api/metadata.php b/engine/tests/api/metadata.php
index 9933263d1..825290d80 100644
--- a/engine/tests/api/metadata.php
+++ b/engine/tests/api/metadata.php
@@ -102,14 +102,14 @@ class ElggCoreMetadataAPITest extends ElggCoreUnitTest {
$e = new ElggObject();
$e->save();
- for ($i=0; $i<30; $i++) {
- $name = "test_metadata" . rand(0, 10000);
+ for ($i = 0; $i < 30; $i++) {
+ $name = "test_metadata$i";
$e->$name = rand(0, 10000);
}
$options = array(
'guid' => $e->getGUID(),
- 'limit' => 0
+ 'limit' => 0,
);
$md = elgg_get_metadata($options);