aboutsummaryrefslogtreecommitdiff
path: root/engine/tests
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-08 14:09:39 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-08 14:09:39 +0000
commitf043cf471666819ddadd2e179ac5a967760e755a (patch)
treea5b48bdcf6b176bf930175c23a18b5541e99b01b /engine/tests
parentc7e4f74831380c11c30d4d1d709fede4dda0f4ed (diff)
downloadelgg-f043cf471666819ddadd2e179ac5a967760e755a.tar.gz
elgg-f043cf471666819ddadd2e179ac5a967760e755a.tar.bz2
Removed the silly things I was doing in the egef_relationship_count() test.
git-svn-id: http://code.elgg.org/elgg/trunk@7568 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/tests')
-rw-r--r--engine/tests/api/entity_getter_functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/tests/api/entity_getter_functions.php b/engine/tests/api/entity_getter_functions.php
index 7709732ba..c3b34aebc 100644
--- a/engine/tests/api/entity_getter_functions.php
+++ b/engine/tests/api/entity_getter_functions.php
@@ -2515,7 +2515,7 @@ class ElggCoreEntityGetterFunctionsTest extends ElggCoreUnitTest {
$entities = $this->entities;
$relationships = array();
$count = count($entities);
- $max = $count - 2;
+ $max = $count - 1;
$relationship_name = 'test_relationship_' . rand(0, 1000);
for ($i = 0; $i < $count; $i++) {
@@ -2525,7 +2525,7 @@ class ElggCoreEntityGetterFunctionsTest extends ElggCoreUnitTest {
$relationships[$popular_entity->guid] = array();
- for ($c = 0; $c <= $max; $c++) {
+ for ($c = 0; $c < $max; $c++) {
do {
$fan_entity = $entities[array_rand($entities)];
} while ($fan_entity->guid == $popular_entity->guid || in_array($fan_entity->guid, $relationships[$popular_entity->guid]));