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
/
SpecialBlockTest.php
diff --git
a/tests/phpunit/includes/specials/SpecialBlockTest.php
b/tests/phpunit/includes/specials/SpecialBlockTest.php
index
0643e0e
..
a17f39d
100644
(file)
--- a/
tests/phpunit/includes/specials/SpecialBlockTest.php
+++ b/
tests/phpunit/includes/specials/SpecialBlockTest.php
@@
-121,6
+121,8
@@
class SpecialBlockTest extends SpecialPageTestBase {
new PageRestriction( 0, $pageSaturn->getId() ),
new PageRestriction( 0, $pageMars->getId() ),
new NamespaceRestriction( 0, NS_TALK ),
+ // Deleted page.
+ new PageRestriction( 0, 999999 ),
] );
$block->insert();