X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles_versions%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FPrefixSearchTest.php;h=98ec7e027c4bb964de7934af63d721708d849601;hb=63d7f2ad1345453dc16f16493fc7e5524219cfb8;hp=3bde5de41ff6f5f45323d627eee67340d430e8ef;hpb=708f51c2c60b970549f463776faa38318fd11d21;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/PrefixSearchTest.php b/tests/phpunit/includes/PrefixSearchTest.php index 3bde5de41f..98ec7e027c 100644 --- a/tests/phpunit/includes/PrefixSearchTest.php +++ b/tests/phpunit/includes/PrefixSearchTest.php @@ -50,7 +50,7 @@ class PrefixSearchTest extends MediaWikiLangTestCase { $this->markTestSkipped( 'Main namespace does not support wikitext.' ); } - // Avoid special pages from extensions interferring with the tests + // Avoid special pages from extensions interfering with the tests $this->setMwGlobals( [ 'wgSpecialPages' => [], 'wgHooks' => [], @@ -61,17 +61,10 @@ class PrefixSearchTest extends MediaWikiLangTestCase { $this->originalHandlers = TestingAccessWrapper::newFromClass( Hooks::class )->handlers; TestingAccessWrapper::newFromClass( Hooks::class )->handlers = []; - // Clear caches so that our new namespace appears - MWNamespace::clearCaches(); - Language::factory( 'en' )->resetNamespaces(); - SpecialPageFactory::resetList(); } public function tearDown() { - MWNamespace::clearCaches(); - Language::factory( 'en' )->resetNamespaces(); - parent::tearDown(); TestingAccessWrapper::newFromClass( Hooks::class )->handlers = $this->originalHandlers;