X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTitleMethodsTest.php;h=54cdbe28e71e0168c639a023b403067675a08517;hb=7040be4f72b46a0052f8896ef462d8b98f45e157;hp=8af34346c17ed9afd265eb56b48341c029406234;hpb=4b73a8b6fbb6da651af850a7d667e6e8d59e6fce;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TitleMethodsTest.php b/tests/phpunit/includes/TitleMethodsTest.php index 8af34346c1..54cdbe28e7 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 ], ]; } @@ -324,6 +325,9 @@ class TitleMethodsTest extends MediaWikiLangTestCase { $this->assertEquals( $expected, $title->getOtherPage()->getPrefixedText() ); } + /** + * @covers Title::clearCaches + */ public function testClearCaches() { $linkCache = LinkCache::singleton();