mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fixed SSViewerTest execution in non-dev environments
This commit is contained in:
parent
36d514d551
commit
d5313aa6a4
@ -936,6 +936,8 @@ after')
|
||||
}
|
||||
|
||||
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 @@ after')
|
||||
$this->assertEquals($result, $expected);
|
||||
|
||||
SSViewer::set_source_file_comments(false);
|
||||
Director::set_environment_type($origType);
|
||||
}
|
||||
|
||||
function testLoopIteratorIterator() {
|
||||
|
Loading…
Reference in New Issue
Block a user