diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tag/tests/Tag_Test.php | 5 |
1 files changed, 3 insertions, 2 deletions
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); |