diff options
author | Bharat Mediratta <bharat@menalto.com> | 2013-02-07 15:09:15 -0500 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2013-02-07 15:09:15 -0500 |
commit | 59371077c28a9af149bdc0f4aa97ce8037755dcb (patch) | |
tree | 7dc58475d21b62cb2711cc94a1c3c959477cdf49 /modules/gallery/tests/Item_Model_Test.php | |
parent | 27ec3b4c6c9e5bd9fa61fd613b9b68af37eab1e4 (diff) | |
parent | 0f7eecbf9b99bcf214c7a07ad8df771d18db787f (diff) |
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/tests/Item_Model_Test.php')
-rw-r--r-- | modules/gallery/tests/Item_Model_Test.php | 6 |
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() { |