From: Antoine Musso Date: Thu, 24 Nov 2016 15:09:26 +0000 (+0100) Subject: parserTests: flag articles creation as internal X-Git-Tag: 1.31.0-rc.0~4769^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=a93d420ea2a63bd71b49ebd656e857ad339c26e5;p=lhc%2Fweb%2Fwiklou.git parserTests: flag articles creation as internal When the parser test suite creates articles, there is no need to check whether it has been pre parsed in stash edit. That is quite spammy in the debug log and always a cache miss. Bypass the cache lookup by passing EDIT_INTERNAL to doEditContent() Change-Id: I27e212ab1a76ebcf25b383514c9ad8ad0b28383c --- diff --git a/tests/parser/ParserTestRunner.php b/tests/parser/ParserTestRunner.php index 04c142ab77..281e1df98c 100644 --- a/tests/parser/ParserTestRunner.php +++ b/tests/parser/ParserTestRunner.php @@ -1508,7 +1508,11 @@ class ParserTestRunner { // get a reference to the mock object. MessageCache::singleton()->getParser(); $restore = $this->executeSetupSnippets( [ 'wgParser' => new ParserTestMockParser ] ); - $status = $page->doEditContent( ContentHandler::makeContent( $text, $title ), '', EDIT_NEW ); + $status = $page->doEditContent( + ContentHandler::makeContent( $text, $title ), + '', + EDIT_NEW | EDIT_INTERNAL + ); $restore(); if ( !$status->isOK() ) {