summaryrefslogtreecommitdiff
path: root/modules/tag/tests
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-27 21:40:48 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-27 21:40:48 -0800
commitec0f89f10a58c3c3751387d5c1d1efcbf940bc9a (patch)
tree2463e384b8365dee6876e610354bd7b23d8071de /modules/tag/tests
parent4ca91bf6188a1a034ef7770308f42e7c788a1936 (diff)
Change "resource" to "entity" in REST responses. They're all
resources, but we differentiate resources as collections and entities.
Diffstat (limited to 'modules/tag/tests')
-rw-r--r--modules/tag/tests/Tag_Rest_Helper_Test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/tag/tests/Tag_Rest_Helper_Test.php b/modules/tag/tests/Tag_Rest_Helper_Test.php
index eacf91b3..d3cae0fb 100644
--- a/modules/tag/tests/Tag_Rest_Helper_Test.php
+++ b/modules/tag/tests/Tag_Rest_Helper_Test.php
@@ -31,7 +31,7 @@ class Tag_Rest_Helper_Test extends Gallery_Unit_Test_Case {
$request->url = rest::url("tag", $tag);
$this->assert_equal_array(
array("url" => rest::url("tag", $tag),
- "resource" => $tag->as_array(),
+ "entity" => $tag->as_array(),
"relationships" => array(
"items" => array(
"url" => rest::url("tag_items", $tag),
@@ -56,7 +56,7 @@ class Tag_Rest_Helper_Test extends Gallery_Unit_Test_Case {
$request->url = rest::url("tag", $tag);
$this->assert_equal_array(
array("url" => rest::url("tag", $tag),
- "resource" => $tag->as_array(),
+ "entity" => $tag->as_array(),
"relationships" => array(
"items" => array(
"url" => rest::url("tag_items", $tag),