summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/File_Structure_Test.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-20 09:03:23 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-20 09:03:23 -0700
commit1a210dd27084e4213a1738992b700a244de97d35 (patch)
treed2b489f0e67a0ea16e8729a595ca4efc45af40cf /modules/gallery/tests/File_Structure_Test.php
parent719328a5a7c0086fb97f0dd6b54d5db839696d33 (diff)
Add "json" as a valid view suffix.
Diffstat (limited to 'modules/gallery/tests/File_Structure_Test.php')
-rw-r--r--modules/gallery/tests/File_Structure_Test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/tests/File_Structure_Test.php b/modules/gallery/tests/File_Structure_Test.php
index 39df9f06..1c3356d9 100644
--- a/modules/gallery/tests/File_Structure_Test.php
+++ b/modules/gallery/tests/File_Structure_Test.php
@@ -42,8 +42,8 @@ class File_Structure_Test extends Gallery_Unit_Test_Case {
if (strpos($file, "views")) {
$this->assert_true(
- preg_match("#/views/.*?(\.html|mrss|txt)\.php$#", $file->getPathname()),
- "{$file->getPathname()} should end in .{html,mrss,txt}.php");
+ preg_match("#/views/.*?\.(html|mrss|txt|json)\.php$#", $file->getPathname()),
+ "{$file->getPathname()} should end in .{html,mrss,txt,json}.php");
}
}
}