Set $wgUseTidy = false on TextContentTest
authorPlatonides <platonides@gmail.com>
Tue, 12 Feb 2013 14:43:43 +0000 (15:43 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 13 Feb 2013 05:54:05 +0000 (05:54 +0000)
If $wgUseTidy = true on LocalSettings, although this test
runs fine standalone, when batched with other database tests
it can fail with:
 --- Expected
 +++ Actual
 @@ @@
 -'<p>hello <i>world</i>
 -</p>'
 +'<p>hello <i>world</i></p>'

Change-Id: Id143abf45def7bb686f00584d3f7838dc7396ad7

tests/phpunit/includes/content/TextContentTest.php

index ca387a2..57b7c10 100644 (file)
@@ -22,6 +22,7 @@ class TextContentTest extends MediaWikiLangTestCase {
                                CONTENT_MODEL_CSS,
                                CONTENT_MODEL_JAVASCRIPT,
                        ),
+                       'wgUseTidy' => false,
                        'wgAlwaysUseTidy' => false,
                ) );