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
Merge "Remove parameter 'options' from hook 'SkinEditSectionLinks'"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
PagePropsTest.php
diff --git
a/tests/phpunit/includes/PagePropsTest.php
b/tests/phpunit/includes/PagePropsTest.php
index
646b487
..
222b3e3
100644
(file)
--- a/
tests/phpunit/includes/PagePropsTest.php
+++ b/
tests/phpunit/includes/PagePropsTest.php
@@
-1,5
+1,7
@@
<?php
<?php
+use MediaWiki\MediaWikiServices;
+
/**
* @covers PageProps
*
/**
* @covers PageProps
*
@@
-234,7
+236,8
@@
class PagePropsTest extends MediaWikiLangTestCase {
( $model === null || $model === CONTENT_MODEL_WIKITEXT )
) {
$ns = $this->getDefaultWikitextNS();
( $model === null || $model === CONTENT_MODEL_WIKITEXT )
) {
$ns = $this->getDefaultWikitextNS();
- $page = MWNamespace::getCanonicalName( $ns ) . ':' . $page;
+ $page = MediaWikiServices::getInstance()->getNamespaceInfo()->
+ getCanonicalName( $ns ) . ':' . $page;
}
$page = Title::newFromText( $page );
}
$page = Title::newFromText( $page );