SECURITY: blacklist CSS var()
[lhc/web/wiklou.git] / tests / phpunit / includes / PrefixSearchTest.php
index 5606924..685cb40 100644 (file)
@@ -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 ) {