diff options
author | vladshapik <vlad.shapik@speedandfunction.com> | 2021-07-01 13:32:24 +0300 |
---|---|---|
committer | vladshapik <vlad.shapik@speedandfunction.com> | 2021-07-23 15:00:16 +0300 |
commit | c7e6c67dc5d50fa15796a8fe68746700dc93696a (patch) | |
tree | 0f13e797d24457fa34abf730292ddec5f0cbd183 /tests/phpunit/includes/api/ApiOptionsTest.php | |
parent | 92f76b9a4cbc529e135178abc142658ec0012b9e (diff) | |
download | mediawikicore-c7e6c67dc5d50fa15796a8fe68746700dc93696a.tar.gz mediawikicore-c7e6c67dc5d50fa15796a8fe68746700dc93696a.zip |
Hard deprecate User group methods
1) The following methods were hard deprecated:
- User::addAutopromoteOnceGroups
- User::getEffectiveGroups
- User::getAutomaticGroups
- User::getFormerGroups
2) User ::getGroups, ::getGroupMemberships, ::addGroup,
::removeGroup were replaced in the production code,
but they were not hard deprecated because of conflict
with UserRightsProxy class.
Bug: T275148
Change-Id: Ia69598316f5dc5dd9511f6112b5b13e1aa07575a
Diffstat (limited to 'tests/phpunit/includes/api/ApiOptionsTest.php')
-rw-r--r-- | tests/phpunit/includes/api/ApiOptionsTest.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/phpunit/includes/api/ApiOptionsTest.php b/tests/phpunit/includes/api/ApiOptionsTest.php index 73412bce51ee..c505f29e2164 100644 --- a/tests/phpunit/includes/api/ApiOptionsTest.php +++ b/tests/phpunit/includes/api/ApiOptionsTest.php @@ -34,9 +34,6 @@ class ApiOptionsTest extends MediaWikiLangTestCase { ->disableOriginalConstructor() ->getMock(); - // Set up groups and rights - $this->mUserMock->method( 'getEffectiveGroups' )->willReturn( [ '*', 'user' ] ); - // No actual DB data $this->mUserMock->method( 'getInstanceForUpdate' )->willReturn( $this->mUserMock ); |