Fix WikitextContentHandlerTest::testMakeRedirectContent() when content language is...
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 12 Nov 2013 12:57:13 +0000 (13:57 +0100)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 12 Nov 2013 12:57:13 +0000 (13:57 +0100)
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

tests/phpunit/includes/content/WikitextContentHandlerTest.php

index 75a7278..7c62dca 100644 (file)
@@ -79,6 +79,8 @@ class WikitextContentHandlerTest extends MediaWikiLangTestCase {
                global $wgContLang;
                $wgContLang->resetNamespaces();
 
+               MagicWord::clearCache();
+
                if ( is_string( $title ) ) {
                        $title = Title::newFromText( $title );
                }