summaryrefslogtreecommitdiff
path: root/modules/gallery/tests
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-28 01:58:41 -0700
committerBharat Mediratta <bharat@menalto.com>2009-05-28 01:58:41 -0700
commitc8aa9ed440f698bc725b21b2808af88001aaacee (patch)
tree11864138311effdd6d73dee5d9f1334a41cdf89a /modules/gallery/tests
parent534b8525ce95f9d11875cde7a31c93d9c0557475 (diff)
Update tests to reflect cache-buster param on thumbnail urls.
Diffstat (limited to 'modules/gallery/tests')
-rw-r--r--modules/gallery/tests/Album_Helper_Test.php3
-rw-r--r--modules/gallery/tests/Photo_Helper_Test.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/gallery/tests/Album_Helper_Test.php b/modules/gallery/tests/Album_Helper_Test.php
index 80afa8d1..2080ef30 100644
--- a/modules/gallery/tests/Album_Helper_Test.php
+++ b/modules/gallery/tests/Album_Helper_Test.php
@@ -49,7 +49,8 @@ class Album_Helper_Test extends Unit_Test_Case {
$rand = rand();
$root = ORM::factory("item", 1);
$album = album::create($root, $rand, $rand, $rand);
- $this->assert_equal("http://./var/thumbs/$rand/.album.jpg", $album->thumb_url());
+ $this->assert_equal(
+ "http://./var/thumbs/$rand/.album.jpg?m={$album->updated}", $album->thumb_url());
}
public function resize_url_test() {
diff --git a/modules/gallery/tests/Photo_Helper_Test.php b/modules/gallery/tests/Photo_Helper_Test.php
index 2a6693e1..cc1f20da 100644
--- a/modules/gallery/tests/Photo_Helper_Test.php
+++ b/modules/gallery/tests/Photo_Helper_Test.php
@@ -69,7 +69,7 @@ class Photo_Helper_Test extends Unit_Test_Case {
$rand = rand();
$root = ORM::factory("item", 1);
$photo = photo::create($root, MODPATH . "gallery/tests/test.jpg", "$rand.jpg", $rand, $rand);
- $this->assert_equal("http://./var/thumbs/{$rand}.jpg", $photo->thumb_url());
+ $this->assert_equal("http://./var/thumbs/{$rand}.jpg?m={$photo->updated}", $photo->thumb_url());
}
public function resize_url_test() {