diff options
Diffstat (limited to 'tests/parser/ParserTestRunner.php')
-rw-r--r-- | tests/parser/ParserTestRunner.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/parser/ParserTestRunner.php b/tests/parser/ParserTestRunner.php index 6f7dc2a5fe5f..22ea255b8d10 100644 --- a/tests/parser/ParserTestRunner.php +++ b/tests/parser/ParserTestRunner.php @@ -2944,13 +2944,9 @@ class ParserTestRunner { } // Optionally use mock parser, to make debugging of actual parser tests simpler. - // But initialise the MessageCache clone first, don't let MessageCache - // get a reference to the mock object. + // But initialise the MessageParser first so that it gets the original ParserFactory. if ( $this->disableSaveParse ) { - $services->getMessageCache()->parse( '', PageReferenceValue::localReference( - NS_SPECIAL, - 'Badtitle/title not set in ' . __METHOD__ - ) ); + $services->getMessageCache(); $services->disableService( 'Parser' ); $services->disableService( 'ParserFactory' ); $services->redefineService( |