Skip to content

Commit

Permalink
Updated for comment REST relationships.
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Jun 19, 2010
1 parent f451804 commit d86d1a3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/gallery/tests/Item_Rest_Helper_Test.php
Expand Up @@ -43,6 +43,8 @@ public function get_scope_test() {
array("url" => rest::url("item", $album1),
"entity" => $album1->as_restful_array(),
"relationships" => array(
"comments" => array(
"url" => rest::url("item_comments", $album1)),
"tags" => array(
"url" => rest::url("item_tags", $album1),
"members" => array())),
Expand All @@ -58,6 +60,8 @@ public function get_scope_test() {
array("url" => rest::url("item", $album1),
"entity" => $album1->as_restful_array(),
"relationships" => array(
"comments" => array(
"url" => rest::url("item_comments", $album1)),
"tags" => array(
"url" => rest::url("item_tags", $album1),
"members" => array())),
Expand All @@ -73,6 +77,8 @@ public function get_scope_test() {
array("url" => rest::url("item", $album1),
"entity" => $album1->as_restful_array(),
"relationships" => array(
"comments" => array(
"url" => rest::url("item_comments", $album1)),
"tags" => array(
"url" => rest::url("item_tags", $album1),
"members" => array())),
Expand Down Expand Up @@ -100,6 +106,8 @@ public function get_children_like_test() {
array("url" => rest::url("item", $album1),
"entity" => $album1->as_restful_array(),
"relationships" => array(
"comments" => array(
"url" => rest::url("item_comments", $album1)),
"tags" => array(
"url" => rest::url("item_tags", $album1),
"members" => array())),
Expand All @@ -123,6 +131,8 @@ public function get_children_type_test() {
array("url" => rest::url("item", $album1),
"entity" => $album1->as_restful_array(),
"relationships" => array(
"comments" => array(
"url" => rest::url("item_comments", $album1)),
"tags" => array(
"url" => rest::url("item_tags", $album1),
"members" => array())),
Expand Down

0 comments on commit d86d1a3

Please sign in to comment.