diff options
| author | Chad Kieffer <ckieffer@gmail.com> | 2009-08-08 01:14:51 -0600 |
|---|---|---|
| committer | Chad Kieffer <ckieffer@gmail.com> | 2009-08-08 01:14:51 -0600 |
| commit | ed6302a0adbdee604722ce93ad975a55e1d02397 (patch) | |
| tree | 434fe1d24e827962b1d7204aad7a35cc932e87d1 /modules/gallery/tests/ORM_MPTT_Test.php | |
| parent | 6357f3332b9bc33b10c11dc93b83ba9e72eec109 (diff) | |
| parent | 828f6add509c26ee183b44b4ad4f927f34d04509 (diff) | |
Merge branch 'master' of git@github.com:bharat/gallery3
Diffstat (limited to 'modules/gallery/tests/ORM_MPTT_Test.php')
| -rw-r--r-- | modules/gallery/tests/ORM_MPTT_Test.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gallery/tests/ORM_MPTT_Test.php b/modules/gallery/tests/ORM_MPTT_Test.php index 943810c3..f77f1f34 100644 --- a/modules/gallery/tests/ORM_MPTT_Test.php +++ b/modules/gallery/tests/ORM_MPTT_Test.php @@ -177,8 +177,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, "photo")->count()); - $this->assert_equal(1, $parent->descendants(null, 0, "album")->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()); } public function descendant_limit_test() { @@ -215,7 +215,7 @@ class ORM_MPTT_Test extends Unit_Test_Case { $parent->reload(); $this->assert_equal(3, $parent->descendants_count()); - $this->assert_equal(2, $parent->descendants_count("photo")); - $this->assert_equal(1, $parent->descendants_count("album")); + $this->assert_equal(2, $parent->descendants_count(array("type" => "photo"))); + $this->assert_equal(1, $parent->descendants_count(array("type" => "album"))); } } |
