Fix tests.

This commit is contained in:
Daniel Kraus
2022-03-13 11:38:51 +01:00
parent 3e137529df
commit de10da2e20
2 changed files with 3 additions and 2 deletions

View File

@ -318,7 +318,7 @@ class LinkTitlesLinkerTest extends LinkTitles\TestCase {
// Reset namespace caches.
// See https://stackoverflow.com/q/45974979/270712
\MWNamespace::getCanonicalNamespaces(true);
global $wgContLang;
$wgContLang = \MediaWiki\MediaWikiServices::getInstance()->getContentLanguage();
$wgContLang->resetNamespaces();
$this->assertTrue( MWNamespace::exists( $ns ), "The namespace with id $ns should exist!" );