From 5713e3c66ed8bab3b86490d7b6e90f7947d53429 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 23 Dec 2008 04:36:09 +0000 Subject: Change photo::create() and album::create() to take ORM instances instead of ids. --- modules/tag/tests/Tag_Test.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/tag') diff --git a/modules/tag/tests/Tag_Test.php b/modules/tag/tests/Tag_Test.php index 812406bb..f963eaba 100644 --- a/modules/tag/tests/Tag_Test.php +++ b/modules/tag/tests/Tag_Test.php @@ -20,7 +20,8 @@ class Tag_Test extends Unit_Test_Case { public function create_tag_test() { $rand = rand(); - $album = album::create(1, $rand, $rand, $rand); + $root = ORM::factory("item", 1); + $album = album::create($root, $rand, $rand, $rand); $tag1 = "tag1"; tag::add($album, $tag1); @@ -33,7 +34,7 @@ class Tag_Test extends Unit_Test_Case { $this->assert_true(1, $tag->count); $rand = rand(); - $album = album::create(1, $rand, $rand, $rand); + $album = album::create($root, $rand, $rand, $rand); tag::add($album, $tag1); $tag = ORM::factory("tag")->where("name", $tag1)->find(); $this->assert_true(2, $tag->count); -- cgit v1.2.3