X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FPrefixSearchTest.php;h=2f3e569613d7ed2a42eedff26aaf2d9bc6fd7411;hb=d68cffa1a20e30a0f1d7d2cf5ce095720b1b8551;hp=a6cf14a3adce8f308187b078007d91519101f514;hpb=34f0289491dcbc418bcd910a7dcdb79bbf4a87c5;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/PrefixSearchTest.php b/tests/phpunit/includes/PrefixSearchTest.php index a6cf14a3ad..2f3e569613 100644 --- a/tests/phpunit/includes/PrefixSearchTest.php +++ b/tests/phpunit/includes/PrefixSearchTest.php @@ -62,13 +62,16 @@ class PrefixSearchTest extends MediaWikiLangTestCase { TestingAccessWrapper::newFromClass( 'Hooks' )->handlers = []; // Clear caches so that our new namespace appears - MWNamespace::getCanonicalNamespaces( true ); + MWNamespace::clearCaches(); Language::factory( 'en' )->resetNamespaces(); SpecialPageFactory::resetList(); } public function tearDown() { + MWNamespace::clearCaches(); + Language::factory( 'en' )->resetNamespaces(); + parent::tearDown(); TestingAccessWrapper::newFromClass( 'Hooks' )->handlers = $this->originalHandlers;