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. --- core/tests/Items_Controller_Test.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/tests/Items_Controller_Test.php') diff --git a/core/tests/Items_Controller_Test.php b/core/tests/Items_Controller_Test.php index 784177b5..85ff3e03 100644 --- a/core/tests/Items_Controller_Test.php +++ b/core/tests/Items_Controller_Test.php @@ -20,7 +20,8 @@ class Items_Controller_Test extends Unit_Test_Case { public function change_item_test() { $controller = new Items_Controller(); - $album = album::create(1, "test", "test"); + $root = ORM::factory("item", 1); + $album = album::create($root, "test", "test"); $_POST["title"] = "new title"; $_POST["description"] = "new description"; @@ -31,7 +32,8 @@ class Items_Controller_Test extends Unit_Test_Case { public function change_item_test_with_return() { $controller = new Items_Controller(); - $album = album::create(1, "test", "test"); + $root = ORM::factory("item", 1); + $album = album::create($root, "test", "test"); $_POST["title"] = "item_title"; $_POST["description"] = "item_description"; $_POST["__return"] = "item_description"; -- cgit v1.2.3