Improve namespace handling in tests
[lhc/web/wiklou.git] / tests / parser / ParserTestRunner.php
index 5fe2177..0121d53 100644 (file)
@@ -384,7 +384,7 @@ class ParserTestRunner {
                // Changing wgExtraNamespaces invalidates caches in MWNamespace and
                // any live Language object, both on setup and teardown
                $reset = function () {
-                       MWNamespace::getCanonicalNamespaces( true );
+                       MWNamespace::clearCaches();
                        $GLOBALS['wgContLang']->resetNamespaces();
                };
                $setup[] = $reset;