summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-02-06 14:56:31 -0800
committerBharat Mediratta <bharat@menalto.com>2013-02-06 14:56:31 -0800
commit0c4912c5428580eac01eb4423dd48a1504d17a48 (patch)
treec30164736b9ffac73349173d84a0573035a5e880 /modules
parent1796a290c18a2e38c7714ac903c78ac54c373e6b (diff)
parent1ae1165229813421384341e7ab83a834e08ca6f0 (diff)
Merge pull request #122 from shadlaws/followon_1982_part_2
Follow-on to 949b8cda14ec037386da34c43248ebd60542f5da for #1982.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/tests/Item_Model_Test.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gallery/tests/Item_Model_Test.php b/modules/gallery/tests/Item_Model_Test.php
index 35b865c4..a1c5bce6 100644
--- a/modules/gallery/tests/Item_Model_Test.php
+++ b/modules/gallery/tests/Item_Model_Test.php
@@ -473,6 +473,12 @@ class Item_Model_Test extends Gallery_Unit_Test_Case {
$this->assert_true(
preg_match("|http://./var/thumbs/name_\w+/\.album\.jpg\?m=\d+|", $album->thumb_url()),
$album->thumb_url() . " is malformed");
+
+ // If the file does not exist, we should return a cache buster of m=0.
+ unlink($album->thumb_path());
+ $this->assert_true(
+ preg_match("|http://./var/thumbs/name_\w+/\.album\.jpg\?m=0|", $album->thumb_url()),
+ $album->thumb_url() . " is malformed");
}
public function legal_extension_test() {