X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FPrefixSearchTest.php;h=685cb4024e11fcc722a13a2937ac6f87cac870ea;hp=560692417ffb0307d029d5012c98f3a05375307f;hb=214b37ff07f3fde89430297b2a857750a56ae205;hpb=62fa503bc36330c7db64f1511e0f61affa3afb86 diff --git a/tests/phpunit/includes/PrefixSearchTest.php b/tests/phpunit/includes/PrefixSearchTest.php index 560692417f..685cb4024e 100644 --- a/tests/phpunit/includes/PrefixSearchTest.php +++ b/tests/phpunit/includes/PrefixSearchTest.php @@ -61,15 +61,13 @@ class PrefixSearchTest extends MediaWikiLangTestCase { $this->originalHandlers = TestingAccessWrapper::newFromClass( Hooks::class )->handlers; TestingAccessWrapper::newFromClass( Hooks::class )->handlers = []; - SpecialPageFactory::resetList(); + $this->overrideMwServices(); } public function tearDown() { parent::tearDown(); TestingAccessWrapper::newFromClass( Hooks::class )->handlers = $this->originalHandlers; - - SpecialPageFactory::resetList(); } protected function searchProvision( array $results = null ) {