diff options
| author | Nathan Kinkade <nkinkade@nkinka.de> | 2010-12-23 02:12:38 +0000 | 
|---|---|---|
| committer | Nathan Kinkade <nkinkade@nkinka.de> | 2010-12-23 02:12:38 +0000 | 
| commit | 5e17a5e7fcb678bd7081bdf8089afec5b25f3aff (patch) | |
| tree | 9590eae390af1f72b72ddc6500a2566e3558e3bb /modules/gallery/tests/Items_Rest_Helper_Test.php | |
| parent | cf1965957c48b1c88a3913f8167688d03d191cec (diff) | |
| parent | 032e6fde5f99c3150a4ae70e410ce314d8c3877a (diff) | |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/gallery/tests/Items_Rest_Helper_Test.php')
| -rw-r--r-- | modules/gallery/tests/Items_Rest_Helper_Test.php | 14 | 
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));    }  | 
