Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG Fixed SSViewerTest execution in non-dev environments

  • Loading branch information...
commit d5313aa6a424a23f174505eb20f562aadf649cfe 1 parent 36d514d
@chillu chillu authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  tests/view/SSViewerTest.php
View
3  tests/view/SSViewerTest.php
@@ -936,6 +936,8 @@ function testRewriteHashlinksInPhpMode() {
}
function testRenderWithSourceFileComments() {
+ $origType = Director::get_environment_type();
+ Director::set_environment_type('dev');
SSViewer::set_source_file_comments(true);
$view = new SSViewer(array('SSViewerTestCommentsFullSource'));
@@ -965,6 +967,7 @@ function testRenderWithSourceFileComments() {
$this->assertEquals($result, $expected);
SSViewer::set_source_file_comments(false);
+ Director::set_environment_type($origType);
}
function testLoopIteratorIterator() {
Please sign in to comment.
Something went wrong with that request. Please try again.