diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-20 09:03:23 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-20 09:03:23 -0700 |
commit | 1a210dd27084e4213a1738992b700a244de97d35 (patch) | |
tree | d2b489f0e67a0ea16e8729a595ca4efc45af40cf | |
parent | 719328a5a7c0086fb97f0dd6b54d5db839696d33 (diff) |
Add "json" as a valid view suffix.
-rw-r--r-- | modules/gallery/tests/File_Structure_Test.php | 4 |
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"); } } } |