mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
Fix tests.
This commit is contained in:
@ -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!" );
|
||||
|
||||
|
Reference in New Issue
Block a user