summaryrefslogtreecommitdiff
path: root/modules/gallery/tests
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-02-03 09:44:51 -0800
committerBharat Mediratta <bharat@menalto.com>2013-02-03 09:44:51 -0800
commit0d9c4da0ffe9796bd0fa1ee9003e0a4cf277c538 (patch)
tree658f33b59e38106d53f24c0e1f152f554217d617 /modules/gallery/tests
parent291059d86a5badb62360b88f5dccab4a07f47778 (diff)
parent949b8cda14ec037386da34c43248ebd60542f5da (diff)
Merge pull request #118 from shadlaws/fix_1982_followon
Follow-on to f83ed5f8716663a45c9d8e8118bbcf0e2849c3fb for #1982.
Diffstat (limited to 'modules/gallery/tests')
-rw-r--r--modules/gallery/tests/Item_Model_Test.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gallery/tests/Item_Model_Test.php b/modules/gallery/tests/Item_Model_Test.php
index 41361b32..35b865c4 100644
--- a/modules/gallery/tests/Item_Model_Test.php
+++ b/modules/gallery/tests/Item_Model_Test.php
@@ -464,10 +464,9 @@ class Item_Model_Test extends Gallery_Unit_Test_Case {
preg_match("|http://./var/albums/name_\w+\.jpg\?m=\d+|", $photo->file_url()),
$photo->file_url() . " is malformed");
- // Albums have special thumbnails. Empty album has cachebuster of 0 since it has no thumbnail
$album = test::random_album();
$this->assert_true(
- preg_match("|http://./var/thumbs/name_\w+/\.album\.jpg\?m=0|", $album->thumb_url()),
+ preg_match("|http://./var/thumbs/name_\w+/\.album\.jpg\?m=\d+|", $album->thumb_url()),
$album->thumb_url() . " is malformed");
$photo = test::random_photo($album);