X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FPagePropsTest.php;h=c96d9870172f67a28e6707c1d83fd809216baba9;hb=9a6f63cd8c68cfab3ca7f34b096eef5652900072;hp=29c9e228f2cebf1851d5f0c76495bdfa6d0ef019;hpb=9964ca1a390c446397dcd466916ffed356cdc3c9;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/PagePropsTest.php b/tests/phpunit/includes/PagePropsTest.php index 29c9e228f2..c96d987017 100644 --- a/tests/phpunit/includes/PagePropsTest.php +++ b/tests/phpunit/includes/PagePropsTest.php @@ -7,7 +7,7 @@ * @group medium * ^--- tell phpunit that these test cases may take longer than 2 seconds. */ -class TestPageProps extends MediaWikiLangTestCase { +class PagePropsTest extends MediaWikiLangTestCase { /** * @var Title $title1 @@ -35,7 +35,7 @@ class TestPageProps extends MediaWikiLangTestCase { $wgNamespaceContentModels[12312] = 'DUMMY'; $wgContentHandlers['DUMMY'] = 'DummyContentHandlerForTesting'; - MWNamespace::getCanonicalNamespaces( true ); # reset namespace cache + MWNamespace::clearCaches(); $wgContLang->resetNamespaces(); # reset namespace cache if ( !$this->the_properties ) { @@ -81,7 +81,7 @@ class TestPageProps extends MediaWikiLangTestCase { unset( $wgNamespaceContentModels[12312] ); unset( $wgContentHandlers['DUMMY'] ); - MWNamespace::getCanonicalNamespaces( true ); # reset namespace cache + MWNamespace::clearCaches(); $wgContLang->resetNamespaces(); # reset namespace cache }