dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Follow-up e213462f7c61c: fix typo ("constriant" -> "constraint")
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
PagePropsTest.php
diff --git
a/tests/phpunit/includes/PagePropsTest.php
b/tests/phpunit/includes/PagePropsTest.php
index
29c9e22
..
c96d987
100644
(file)
--- 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.
*/
* @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
/**
* @var Title $title1
@@
-35,7
+35,7
@@
class TestPageProps extends MediaWikiLangTestCase {
$wgNamespaceContentModels[12312] = 'DUMMY';
$wgContentHandlers['DUMMY'] = 'DummyContentHandlerForTesting';
$wgNamespaceContentModels[12312] = 'DUMMY';
$wgContentHandlers['DUMMY'] = 'DummyContentHandlerForTesting';
- MWNamespace::
getCanonicalNamespaces( true ); # reset namespace cache
+ MWNamespace::
clearCaches();
$wgContLang->resetNamespaces(); # reset namespace cache
if ( !$this->the_properties ) {
$wgContLang->resetNamespaces(); # reset namespace cache
if ( !$this->the_properties ) {
@@
-81,7
+81,7
@@
class TestPageProps extends MediaWikiLangTestCase {
unset( $wgNamespaceContentModels[12312] );
unset( $wgContentHandlers['DUMMY'] );
unset( $wgNamespaceContentModels[12312] );
unset( $wgContentHandlers['DUMMY'] );
- MWNamespace::
getCanonicalNamespaces( true ); # reset namespace cache
+ MWNamespace::
clearCaches();
$wgContLang->resetNamespaces(); # reset namespace cache
}
$wgContLang->resetNamespaces(); # reset namespace cache
}