summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/Gallery_Rest_Helper_Test.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-12-09 08:41:38 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-12-09 08:41:38 -0800
commit367f2218f6bc278a7d0bd870e03a5d631155871a (patch)
treef5a8d428ca8c736b9b25273ee043e2e57536ac22 /modules/gallery/tests/Gallery_Rest_Helper_Test.php
parent3c30d595ae6a9a82e06f5427150d3667f00ef695 (diff)
Use the relative url cache to look up resources instead of the relative path. This allows us to forego the extension as part of the REST url. As well, urls are consistent between normal usage and rest usage.
Diffstat (limited to 'modules/gallery/tests/Gallery_Rest_Helper_Test.php')
-rw-r--r--modules/gallery/tests/Gallery_Rest_Helper_Test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/tests/Gallery_Rest_Helper_Test.php b/modules/gallery/tests/Gallery_Rest_Helper_Test.php
index 1bf0b1ca..b874863f 100644
--- a/modules/gallery/tests/Gallery_Rest_Helper_Test.php
+++ b/modules/gallery/tests/Gallery_Rest_Helper_Test.php
@@ -58,7 +58,7 @@ class Gallery_Rest_Helper_Test extends Unit_Test_Case {
$this->assert_equal(
json_encode(array("status" => "OK",
- "album" => array("path" => $this->_child->relative_path(),
+ "album" => array("path" => $this->_child->relative_url_path(),
"title" => $this->_child->title,
"thumb_url" => $this->_child->thumb_url(),
"url" => $this->_child->abs_url(),
@@ -67,7 +67,7 @@ class Gallery_Rest_Helper_Test extends Unit_Test_Case {
"children" => array(array(
"type" => "photo",
"has_children" => false,
- "path" => $this->_photo->relative_path(),
+ "path" => $this->_photo->relative_url_path(),
"title" => $this->_photo->title))))),
gallery_rest::get($request));
}