aboutsummaryrefslogtreecommitdiff
path: root/engine/tests/api/helpers.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-11-18 17:59:50 -0500
committercash <cash.costello@gmail.com>2011-11-18 17:59:50 -0500
commitff907019418cd1635cba8b1c225827a20eedfe2c (patch)
tree3bea3f1da6e6cd35667222f36a9e1b41d2c557dc /engine/tests/api/helpers.php
parentc872edbb476cf0a0c742c6e7a987096e15464f00 (diff)
downloadelgg-ff907019418cd1635cba8b1c225827a20eedfe2c.tar.gz
elgg-ff907019418cd1635cba8b1c225827a20eedfe2c.tar.bz2
Fixes #4129 fixed priority list tests
Diffstat (limited to 'engine/tests/api/helpers.php')
-rw-r--r--engine/tests/api/helpers.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/tests/api/helpers.php b/engine/tests/api/helpers.php
index f48f91faf..8896fc33f 100644
--- a/engine/tests/api/helpers.php
+++ b/engine/tests/api/helpers.php
@@ -351,7 +351,7 @@ class ElggCoreHelpersTest extends ElggCoreUnitTest {
$test_elements = $pl->getElements();
// make sure it's gone.
- $this->assertTrue(2, count($test_elements));
+ $this->assertEqual(2, count($test_elements));
$this->assertIdentical($elements[0], $test_elements[0]);
$this->assertIdentical($elements[2], $test_elements[2]);
}
@@ -369,7 +369,7 @@ class ElggCoreHelpersTest extends ElggCoreUnitTest {
$pl->add($element, $priority);
}
- $this->assertTrue($pl->move($elements[-5], 10));
+ $this->assertEqual($pl->move($elements[-5], 10), 10);
// check it's at the new place
$this->assertIdentical($elements[-5], $pl->getElement(10));