X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTitleMethodsTest.php;h=b760c224891456a6b29f590dd8fd631599387a2d;hb=9a6f63cd8c68cfab3ca7f34b096eef5652900072;hp=8af34346c17ed9afd265eb56b48341c029406234;hpb=b5906606e1aa1a795231fb813b766818b1dd6c25;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TitleMethodsTest.php b/tests/phpunit/includes/TitleMethodsTest.php index 8af34346c1..b760c22489 100644 --- a/tests/phpunit/includes/TitleMethodsTest.php +++ b/tests/phpunit/includes/TitleMethodsTest.php @@ -29,7 +29,7 @@ class TitleMethodsTest extends MediaWikiLangTestCase { ] ); - MWNamespace::getCanonicalNamespaces( true ); # reset namespace cache + MWNamespace::clearCaches(); $wgContLang->resetNamespaces(); # reset namespace cache } @@ -38,7 +38,7 @@ class TitleMethodsTest extends MediaWikiLangTestCase { parent::tearDown(); - MWNamespace::getCanonicalNamespaces( true ); # reset namespace cache + MWNamespace::clearCaches(); $wgContLang->resetNamespaces(); # reset namespace cache } @@ -305,6 +305,7 @@ class TitleMethodsTest extends MediaWikiLangTestCase { [ 'Help:Main Page', 'Help talk:Main Page' ], [ 'Help talk:Main Page', 'Help:Main Page' ], [ 'Special:FooBar', null ], + [ 'Media:File.jpg', null ], ]; }