X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FPrefixSearchTest.php;h=685cb4024e11fcc722a13a2937ac6f87cac870ea;hb=c54be9ac6b271e6cb7eb26620e0d89979b597d5c;hp=560692417ffb0307d029d5012c98f3a05375307f;hpb=62fa503bc36330c7db64f1511e0f61affa3afb86;p=lhc%2Fweb%2Fwiklou.git 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 ) {