summaryrefslogtreecommitdiff
path: root/modules/gallery/tests
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-15 20:25:35 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-15 20:25:35 -0700
commite3535349abb6e955a75d97f57971f4ea4913da6f (patch)
treefc0705d92d6be88e61a17832676eab17126fb080 /modules/gallery/tests
parent57b53e6193cc6baf12bf58d8e528518a93bff03c (diff)
Revert "Add a "convert_ids" parameter to Item_Model::as_restful_array(), which"
This reverts commit 98fce83de5f772482382bfabdbcd94c25ecdbb1a. Conflicts: modules/gallery/tests/Item_Model_Test.php
Diffstat (limited to 'modules/gallery/tests')
-rw-r--r--modules/gallery/tests/Item_Model_Test.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/gallery/tests/Item_Model_Test.php b/modules/gallery/tests/Item_Model_Test.php
index f9e6a4e3..907cfe24 100644
--- a/modules/gallery/tests/Item_Model_Test.php
+++ b/modules/gallery/tests/Item_Model_Test.php
@@ -368,18 +368,6 @@ class Item_Model_Test extends Gallery_Unit_Test_Case {
$this->assert_true(!array_key_exists("album_cover_item_id", $result));
}
- public function as_restful_array_with_ids_test() {
- $album = test::random_album();
- $photo = test::random_photo($album);
- $album->reload();
-
- $result = $album->as_restful_array(false);
- $this->assert_same(item::root()->id, $result["parent_id"]);
- $this->assert_same($photo->id, $result["album_cover_item_id"]);
- $this->assert_true(!array_key_exists("parent", $result));
- $this->assert_true(!array_key_exists("album_cover_item", $result));
- }
-
public function as_restful_array_with_edit_bit_test() {
$response = item::root()->as_restful_array(true);
$this->assert_true($response["can_edit"]);