'transformVia404' => false,
'backend' => new FSFileBackend( [
'name' => 'local-backend',
- 'wikiId' => wfWikiId(),
+ 'wikiId' => wfWikiID(),
'containerPaths' => [
'local-public' => $this->uploadDir . '/public',
'local-thumb' => $this->uploadDir . '/thumb',
// "extra language links"
// see https://gerrit.wikimedia.org/r/111390
array_push( $wgExtraInterlanguageLinkPrefixes, 'mul' );
+
+ // Reset namespace cache
+ MWNamespace::getCanonicalNamespaces( true );
+ Language::factory( 'en' )->resetNamespaces();
}
/**
$result =
$this->runTest( $t['test'], $t['input'], $t['result'], $t['options'], $t['config'] );
$ok = $ok && $result;
- $this->recorder->record( $t['test'], $result );
+ $this->recorder->record( $t['test'], $t['subtest'], $result );
}
if ( $this->showProgress ) {
$titleText = 'Parser test';
}
+ ObjectCache::getMainWANInstance()->clearProcessCache();
$local = isset( $opts['local'] );
$preprocessor = isset( $opts['preprocessor'] ) ? $opts['preprocessor'] : null;
$parser = $this->getParser( $preprocessor );
'transformVia404' => false,
'backend' => new FSFileBackend( [
'name' => 'local-backend',
- 'wikiId' => wfWikiId(),
+ 'wikiId' => wfWikiID(),
'containerPaths' => [
'local-public' => $this->uploadDir,
'local-thumb' => $this->uploadDir . '/thumb',
'wgExternalLinkTarget' => false,
'wgHtml5' => true,
'wgWellFormedXml' => true,
- 'wgAllowMicrodataAttributes' => true,
'wgAdaptiveMessageCache' => true,
'wgDisableLangConversion' => false,
'wgDisableTitleConversion' => false,