From 318591526459e1ac1bb8b0acbbcf4bf9f02f8e88 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 25 Dec 2008 10:14:59 +0000 Subject: Split Items_Controller_Test into Photos and Albums tests --- core/tests/Items_Controller_Test.php | 45 ------------------------------------ 1 file changed, 45 deletions(-) delete mode 100644 core/tests/Items_Controller_Test.php (limited to 'core/tests/Items_Controller_Test.php') diff --git a/core/tests/Items_Controller_Test.php b/core/tests/Items_Controller_Test.php deleted file mode 100644 index 85ff3e03..00000000 --- a/core/tests/Items_Controller_Test.php +++ /dev/null @@ -1,45 +0,0 @@ -_update($album); - $this->assert_equal("new title", $album->title); - $this->assert_equal("new description", $album->description); - } - - public function change_item_test_with_return() { - $controller = new Items_Controller(); - $root = ORM::factory("item", 1); - $album = album::create($root, "test", "test"); - $_POST["title"] = "item_title"; - $_POST["description"] = "item_description"; - $_POST["__return"] = "item_description"; - - $this->assert_equal("item_description", $controller->_post($album)); - $this->assert_equal("item_title", $album->title); - $this->assert_equal("item_description", $album->description); - } -} -- cgit v1.2.3