Fix/hack ErrorPageError to work from non-UI contexts
[lhc/web/wiklou.git] / tests / phpunit / includes / exception / ErrorPageErrorTest.php
index 71398e3..e72865f 100644 (file)
@@ -43,6 +43,7 @@ class ErrorPageErrorTest extends MediaWikiTestCase {
                $mock->expects( $this->once() )
                        ->method( 'output' );
                $this->setMwGlobals( 'wgOut', $mock );
+               $this->setMwGlobals( 'wgCommandLineMode', false );
 
                $e = new ErrorPageError( $title, $mockMessage, $params );
                $e->report();