Tidy changes some whitespaces in the HTML which breaks the tests if enabled.
Change-Id: Ib44f60c0d4b595c76c258b41962c3c45ca21ac3e
CONTENT_MODEL_WIKITEXT,
CONTENT_MODEL_CSS,
CONTENT_MODEL_JAVASCRIPT,
- )
+ ),
+ 'wgAlwaysUseTidy' => false,
) );
$this->context = new RequestContext( new FauxRequest() );
public static function provideBadNames() {
return array( array( "foo<bar" ), array( "foo>bar" ), array( "foo\nbar" ), array( "foo\rbar" ) );
}
-
+
+ protected function setUp() {
+ parent::setUp();
+
+ $this->setMwGlobals( 'wgAlwaysUseTidy', false );
+ }
+
/**
* @dataProvider provideValidNames
*/