X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FParserTestRunner.php;h=35c2480d0221cfbd6c156935e36df2cc4ef371ee;hb=bdfa96eb726c9997a010f5a194eec71925bfddc2;hp=97e24b65f9f1d25f00955266140104443d39d7a8;hpb=c31df03dc137a791fde75f71c183aaa4277092a6;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/ParserTestRunner.php b/tests/parser/ParserTestRunner.php index 97e24b65f9..35c2480d02 100644 --- a/tests/parser/ParserTestRunner.php +++ b/tests/parser/ParserTestRunner.php @@ -295,7 +295,7 @@ class ParserTestRunner { MediaWikiServices::getInstance()->resetServiceForTesting( 'MediaHandlerFactory' ); }; - // SqlBagOStuff broke when using temporary tables on r40209 (bug 15892). + // SqlBagOStuff broke when using temporary tables on r40209 (T17892). // It seems to have been fixed since (r55079?), but regressed at some point before r85701. // This works around it for now... global $wgObjectCaches; @@ -316,7 +316,7 @@ class ParserTestRunner { private function appendNamespaceSetup( &$setup, &$teardown ) { // Add a namespace shadowing a interwiki link, to test - // proper precedence when resolving links. (bug 51680) + // proper precedence when resolving links. (T53680) $setup['wgExtraNamespaces'] = [ 100 => 'MemoryAlpha', 101 => 'MemoryAlpha_talk' @@ -974,10 +974,9 @@ class ParserTestRunner { 'wgEnableUploads' => self::getOptionValue( 'wgEnableUploads', $opts, true ), 'wgLanguageCode' => $langCode, 'wgRawHtml' => self::getOptionValue( 'wgRawHtml', $opts, false ), - 'wgNamespacesWithSubpages' => [ - 0 => isset( $opts['subpage'] ), - 2 => isset( $opts['subpage'] ), - ], + 'wgNamespacesWithSubpages' => array_fill_keys( + MWNamespace::getValidNamespaces(), isset( $opts['subpage'] ) + ), 'wgMaxTocLevel' => $maxtoclevel, 'wgAllowExternalImages' => self::getOptionValue( 'wgAllowExternalImages', $opts, true ), 'wgThumbLimits' => [ self::getOptionValue( 'thumbsize', $opts, 180 ) ], @@ -1321,7 +1320,7 @@ class ParserTestRunner { if ( $this->useTemporaryTables ) { if ( $this->db->getType() == 'sqlite' ) { # Under SQLite the searchindex table is virtual and need - # to be explicitly destroyed. See bug 29912 + # to be explicitly destroyed. See T31912 # See also MediaWikiTestCase::destroyDB() wfDebug( __METHOD__ . " explicitly destroying sqlite virtual table parsertest_searchindex\n" ); $this->db->query( "DROP TABLE `parsertest_searchindex`" );