summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/tests/Items_Rest_Helper_Test.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/gallery/tests/Items_Rest_Helper_Test.php b/modules/gallery/tests/Items_Rest_Helper_Test.php
index 8e53110a..49e77876 100644
--- a/modules/gallery/tests/Items_Rest_Helper_Test.php
+++ b/modules/gallery/tests/Items_Rest_Helper_Test.php
@@ -65,21 +65,21 @@ class Items_Rest_Helper_Test extends Gallery_Unit_Test_Case {
$request = new stdClass();
$request->params = new stdClass();
$request->params->urls = json_encode(array(
- rest::url("item", $photo1),
- rest::url("item", $album2)));
+ rest::url("item", $photo2),
+ rest::url("item", $album1)));
$request->params->type = "album";
$this->assert_equal_array(
array(
- array("url" => rest::url("item", $album2),
- "entity" => $album2->as_restful_array(),
+ array("url" => rest::url("item", $album1),
+ "entity" => $album1->as_restful_array(),
"relationships" => array(
"comments" => array(
- "url" => rest::url("item_comments", $album2)),
+ "url" => rest::url("item_comments", $album1)),
"tags" => array(
- "url" => rest::url("item_tags", $album2),
+ "url" => rest::url("item_tags", $album1),
"members" => array())),
"members" => array(
- rest::url("item", $photo2)))),
+ rest::url("item", $album2)))),
items_rest::get($request));
}