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
Re-apply: Factors out permissions check from User into PermissionManager service
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
TitleTest.php
diff --git
a/tests/phpunit/includes/TitleTest.php
b/tests/phpunit/includes/TitleTest.php
index
529d9fb
..
225a786
100644
(file)
--- a/
tests/phpunit/includes/TitleTest.php
+++ b/
tests/phpunit/includes/TitleTest.php
@@
-355,7
+355,7
@@
class TitleTest extends MediaWikiTestCase {
// New anonymous user with no rights
$user = new User;
- $
user->mRights = []
;
+ $
this->overrideUserPermissions( $user, [] )
;
$errors = $title->userCan( $action, $user );
if ( is_bool( $expected ) ) {