summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-18 12:49:58 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-18 12:49:58 -0800
commit06cabecd76781d7075cbacb5cf433042b4296dc5 (patch)
tree00634a7032968044c543bcc2e8340f3d35a55658
parenta9f07986f64faf5062c2d86aa34710892d8ac8b3 (diff)
Coerce some integers to strings now that ORM isn't typecasting anymore.
-rw-r--r--modules/gallery/tests/Gallery_Rest_Helper_Test.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/gallery/tests/Gallery_Rest_Helper_Test.php b/modules/gallery/tests/Gallery_Rest_Helper_Test.php
index cd0aabae..f8cf6190 100644
--- a/modules/gallery/tests/Gallery_Rest_Helper_Test.php
+++ b/modules/gallery/tests/Gallery_Rest_Helper_Test.php
@@ -94,8 +94,8 @@ class Gallery_Rest_Helper_Test extends Unit_Test_Case {
"path" => $photo->relative_url(),
"thumb_url" => $photo->thumb_url(),
"thumb_dimensions" => array(
- "width" => $photo->thumb_width,
- "height" => $photo->thumb_height),
+ "width" => (string)$photo->thumb_width,
+ "height" => (string)$photo->thumb_height),
"has_thumb" => true,
"title" => $photo->title))))),
gallery_rest::get($request));
@@ -115,14 +115,14 @@ class Gallery_Rest_Helper_Test extends Unit_Test_Case {
"parent_path" => $child->relative_url(),
"title" => $photo->title,
"thumb_url" => $photo->thumb_url(),
- "thumb_size" => array("height" => $photo->thumb_height,
- "width" => $photo->thumb_width),
+ "thumb_size" => array("height" => (string)$photo->thumb_height,
+ "width" => (string)$photo->thumb_width),
"resize_url" => $photo->resize_url(),
"resize_size" => array("height" => $photo->resize_height,
"width" => $photo->resize_width),
"url" => $photo->file_url(),
- "size" => array("height" => $photo->height,
- "width" => $photo->width),
+ "size" => array("height" => (string)$photo->height,
+ "width" => (string)$photo->width),
"description" => $photo->description,
"slug" => $photo->slug))),
gallery_rest::get($request));