Skip to content

Commit

Permalink
Add "json" as a valid view suffix.
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Jun 20, 2010
1 parent 719328a commit 1a210dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gallery/tests/File_Structure_Test.php
Expand Up @@ -42,8 +42,8 @@ public function view_files_correct_suffix_test() {

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");
}
}
}
Expand Down

0 comments on commit 1a210dd

Please sign in to comment.