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 "Prevent fatal PHP errors when PageRestriction::getTitle() returns null."
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
specials
/
pagers
/
BlockListPagerTest.php
diff --git
a/tests/phpunit/includes/specials/pagers/BlockListPagerTest.php
b/tests/phpunit/includes/specials/pagers/BlockListPagerTest.php
index
7d37881
..
1810ef8
100644
(file)
--- a/
tests/phpunit/includes/specials/pagers/BlockListPagerTest.php
+++ b/
tests/phpunit/includes/specials/pagers/BlockListPagerTest.php
@@
-140,7
+140,9
@@
class BlockListPagerTest extends MediaWikiTestCase {
$restrictions = [
( new PageRestriction( 0, $pageId ) )->setTitle( $title ),
$restrictions = [
( new PageRestriction( 0, $pageId ) )->setTitle( $title ),
- new NamespaceRestriction( 0, NS_MAIN )
+ new NamespaceRestriction( 0, NS_MAIN ),
+ // Deleted page.
+ new PageRestriction( 0, 999999 ),
];
$wrappedPager = TestingAccessWrapper::newFromObject( $pager );
];
$wrappedPager = TestingAccessWrapper::newFromObject( $pager );