Skip to content
This repository
Browse code

BUG Fixed SSViewerTest execution in non-dev environments

  • Loading branch information...
commit d5313aa6a424a23f174505eb20f562aadf649cfe 1 parent 36d514d
Ingo Schommer authored September 12, 2012

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  tests/view/SSViewerTest.php
3  tests/view/SSViewerTest.php
@@ -936,6 +936,8 @@ function testRewriteHashlinksInPhpMode() {
936 936
 	}
937 937
 	
938 938
 	function testRenderWithSourceFileComments() {
  939
+		$origType = Director::get_environment_type();
  940
+		Director::set_environment_type('dev');
939 941
 		SSViewer::set_source_file_comments(true);
940 942
 		
941 943
 		$view = new SSViewer(array('SSViewerTestCommentsFullSource'));
@@ -965,6 +967,7 @@ function testRenderWithSourceFileComments() {
965 967
 		$this->assertEquals($result, $expected);
966 968
 		
967 969
 		SSViewer::set_source_file_comments(false);
  970
+		Director::set_environment_type($origType);
968 971
 	}
969 972
 
970 973
 	function testLoopIteratorIterator() {

0 notes on commit d5313aa

Please sign in to comment.
Something went wrong with that request. Please try again.