summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-23 04:36:09 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-23 04:36:09 +0000
commit5713e3c66ed8bab3b86490d7b6e90f7947d53429 (patch)
treee6a4f5e93dd15406c655c7b51d455c5181d3334c /modules
parent2502240ce4ad25e9fb60ee2468764e25346d2917 (diff)
Change photo::create() and album::create() to take ORM instances
instead of ids.
Diffstat (limited to 'modules')
-rw-r--r--modules/tag/tests/Tag_Test.php5
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);