Revert "Factors out permissions check from User into PermissionManager service"
[lhc/web/wiklou.git] / tests / phpunit / includes / TitleTest.php
index a9f08ed..d6c3401 100644 (file)
@@ -355,7 +355,7 @@ class TitleTest extends MediaWikiTestCase {
 
                // New anonymous user with no rights
                $user = new User;
-               $this->overrideUserPermissions( $user, [] );
+               $user->mRights = [];
                $errors = $title->userCan( $action, $user );
 
                if ( is_bool( $expected ) ) {