Refactor deferrable updates into classes & interfaces, also add helper method for...
[lhc/web/wiklou.git] / tests / parser / parserTest.inc
index 6d2b225..fd5ac6b 100644 (file)
@@ -132,7 +132,7 @@ class ParserTest {
        }
 
        static function setUp() {
-               global $wgParser, $wgParserConf, $IP, $messageMemc, $wgMemc, $wgDeferredUpdateList,
+               global $wgParser, $wgParserConf, $IP, $messageMemc, $wgMemc,
                        $wgUser, $wgLang, $wgOut, $wgRequest, $wgStyleDirectory, $wgEnableParserCache,
                        $wgNamespaceAliases, $wgNamespaceProtection, $wgLocalFileRepo,
                        $parserMemc, $wgThumbnailScriptPath, $wgScriptPath,
@@ -160,7 +160,7 @@ class ParserTest {
 
 
                $wgEnableParserCache = false;
-               $wgDeferredUpdateList = array();
+               DeferredUpdates::clearPendingUpdates();
                $wgMemc = wfGetMainCache();
                $messageMemc = wfGetMessageCacheStorage();
                $parserMemc = wfGetParserCacheStorage();