From: Alexandre Emsenhuber Date: Tue, 12 Nov 2013 12:57:13 +0000 (+0100) Subject: Fix WikitextContentHandlerTest::testMakeRedirectContent() when content language is... X-Git-Tag: 1.31.0-rc.0~18172^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=0925e2e8e43b9ee81a5f056cfe0d1ab1517a39d8;p=lhc%2Fweb%2Fwiklou.git Fix WikitextContentHandlerTest::testMakeRedirectContent() when content language is not english Clear the MagicWord object cache, otherwise the magic word names can be cached in the wrong language, thus making the test fail. Change-Id: Ia6da94ca2c4f9ca892c81b4aa7cf96108b42ccd5 --- diff --git a/tests/phpunit/includes/content/WikitextContentHandlerTest.php b/tests/phpunit/includes/content/WikitextContentHandlerTest.php index 75a727840b..7c62dcad24 100644 --- a/tests/phpunit/includes/content/WikitextContentHandlerTest.php +++ b/tests/phpunit/includes/content/WikitextContentHandlerTest.php @@ -79,6 +79,8 @@ class WikitextContentHandlerTest extends MediaWikiLangTestCase { global $wgContLang; $wgContLang->resetNamespaces(); + MagicWord::clearCache(); + if ( is_string( $title ) ) { $title = Title::newFromText( $title ); }