summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/ORM_MPTT_Test.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-22 16:22:24 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-22 16:22:24 -0800
commita6da027aad5072a85719fc9e201ee946963e74f0 (patch)
treeaf8d159d05fc4f261b77a622fe66e3fba121cde3 /modules/gallery/tests/ORM_MPTT_Test.php
parent71e154b6748a2bedd2289133c6b4c6f3f58d3603 (diff)
The default value for $offset should always be null (according to the
new K24 ORM). Fix up a bad where tuple in the test.
Diffstat (limited to 'modules/gallery/tests/ORM_MPTT_Test.php')
-rw-r--r--modules/gallery/tests/ORM_MPTT_Test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/tests/ORM_MPTT_Test.php b/modules/gallery/tests/ORM_MPTT_Test.php
index 36a81d2c..69b6bea9 100644
--- a/modules/gallery/tests/ORM_MPTT_Test.php
+++ b/modules/gallery/tests/ORM_MPTT_Test.php
@@ -190,8 +190,8 @@ class ORM_MPTT_Test extends Unit_Test_Case {
$parent->reload();
$this->assert_equal(3, $parent->descendants()->count());
- $this->assert_equal(2, $parent->descendants(null, 0, array("type" => "photo"))->count());
- $this->assert_equal(1, $parent->descendants(null, 0, array("type" => "album"))->count());
+ $this->assert_equal(2, $parent->descendants(null, null, array(array("type", "=", "photo")))->count());
+ $this->assert_equal(1, $parent->descendants(null, null, array(array("type", "=", "album")))->count());
}
public function descendant_limit_test() {