Support for PermissionManager changes at

https://gerrit.wikimedia.org/r/c/mediawiki/core/+/502484

Change-Id: I258f02e286b6ba0387e1bff540a744fafb03dc55
This commit is contained in:
Vedmaka 2019-05-10 02:07:55 +03:00 committed by Vedmaka Wakalaka
parent bdf8c2a39b
commit f293b3b7be
2 changed files with 4 additions and 0 deletions

View file

@ -90,6 +90,7 @@ class AbuseFilterSaveTest extends MediaWikiTestCase {
'abusefilter-modify-global' => true,
]
] );
$this->overrideMwServices();
}
/**

View file

@ -91,6 +91,7 @@ class AbuseFilterTest extends MediaWikiTestCase {
],
'wgEnableParserLimitReporting' => false
] );
$this->overrideMwServices();
}
/**
@ -153,8 +154,10 @@ class AbuseFilterTest extends MediaWikiTestCase {
$this->setGroupPermissions( [
'AFTestUserRights' => array_fill_keys( $rights, true )
] );
$this->overrideMwServices();
$previous = $user->getRights();
$user->addGroup( 'AFTestUserRights' );
$user->clearInstanceCache();
$result = array_merge( $rights, $previous );
break;
case 'user_blocked':