From: Ori Livneh Date: Fri, 25 Mar 2016 20:57:28 +0000 (-0700) Subject: Clear process cache in parser tests X-Git-Tag: 1.31.0-rc.0~7495 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=082ed03c88e009df70d5d131cec8f6fcb56c2917;p=lhc%2Fweb%2Fwiklou.git Clear process cache in parser tests Have the parser test set-up code call WANObjectCache::clearProcessCache(). d1c4eafef5 added this to the PHPUnit test set-up code, but not the parser tests'. Change-Id: I870c8bae0336afc499224e4c937c6b8d6ab4d457 --- diff --git a/tests/parser/parserTest.inc b/tests/parser/parserTest.inc index 15f2dcf235..56108c96e8 100644 --- a/tests/parser/parserTest.inc +++ b/tests/parser/parserTest.inc @@ -619,6 +619,7 @@ class ParserTest { $titleText = 'Parser test'; } + ObjectCache::getMainWANInstance()->clearProcessCache(); $local = isset( $opts['local'] ); $preprocessor = isset( $opts['preprocessor'] ) ? $opts['preprocessor'] : null; $parser = $this->getParser( $preprocessor );