mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
Follow on to d2be26e407 to update the
unit tests to reflect the proper type filtering for #1503.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user