wiki.techinc.nl/tests/phpunit/includes
Vedmaka dd6b94024c Re-apply: Factors out permissions check from User into PermissionManager service
Was reverted by I549810a4cd2e424cc4a438887d2f24614a24cc00 due to
T224607.

Original change by  Vedmaka Wakalaka was
Ia0d840b772ea5f20c9594ce151cc57adc270e48b.

Original commit message:

The following methods should are factored out of the User class into PermissionManager,
leaving only deprecated stubs:

- User::isAllowed -> PermissionManager::userHasRight
- User::getRights -> PermissionManager::getUserPermissions
- User::groupHasPermission -> PermissionManager::groupHasPermission
- User::getGroupPermissions -> PermissionManager::getGroupPermissions
 -User::getGroupsWithPermission -> PermissionManager::getGroupsWithPermission
- User::groupHasPermission -> PermissionManager::groupHasPermission
- User::isEveryoneAllowed -> PermissionManager::isEveryoneAllowed
- User::getAllRights -> PermissionManager::getAllPermissions

Depends-On: I7909e9bd6bbfbd708c0a00b861a9b22a38c6665d

Bug: T218558
Bug: T223294
Change-Id: I8899240378f636ea70f447616710516c0a3c5c31
2019-06-28 13:19:38 -07:00
..
actions Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
api Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
auth Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
block Filter out duplicate autoblocks when checking for blocks 2019-06-20 22:01:44 +01:00
cache Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
changes Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
changetags Fix ChangeTagsTest failing on Postgres 2019-03-15 10:10:33 +01:00
collation Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
composer Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
config Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
content Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
context
db Define unit and integration test suites 2019-06-28 12:18:18 -04:00
debug Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
deferred search: refactor DatabaseSearch to take a load balancer instance 2019-06-26 03:03:37 +00:00
diff Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
editpage Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
exception Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
externalstore Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
filebackend Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
filerepo FileRepo: Use Late Static Binding in File static constructors 2019-06-15 13:41:39 +02:00
GlobalFunctions Skip ::testT69870() under Windows system 2019-06-22 19:59:27 +00:00
htmlform Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
http Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
import Merge "Inline trivial object creation helpers in tests" 2019-06-11 20:55:44 +00:00
installer Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
interwiki Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
jobqueue Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
json Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
libs rdbms: Add callback for atomic section cancellation 2019-06-27 20:09:42 -07:00
linkeddata linkeddata: Simplity PageDataRequestHandler test setup 2019-04-01 14:20:19 +00:00
linker Update LinkRenderer to use NamespaceInfo 2019-05-07 14:52:17 +02:00
logging Merge "Tolerate invalid titles in some ChangesFeed and LogFormatter code" 2019-06-24 23:29:11 +00:00
mail
media Fix excessive whitespace in BitmapMetadataHandlerTest.php 2019-06-21 09:26:36 +01:00
Navigation Refactor buildPrevNextNavigation 2019-06-05 19:32:27 -04:00
objectcache Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
page Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
pager
parser Deprecate Sanitizer::setupAttributeWhitelist/attributeWhitelist 2019-06-20 14:42:20 -04:00
password Introduce separate unit tests PHPUnit configuration 2019-06-18 16:58:34 +02:00
Permissions Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
poolcounter Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
preferences Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
rcfeed
registration Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
resourceloader resourceloader: Remove support for raw modules 2019-06-27 00:08:14 +00:00
Rest ResponseFactory: support 302 redirects 2019-06-26 11:42:31 +02:00
Revision Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
search Deprecate SearchResult::termMatches() 2019-06-27 08:44:06 -07:00
session Follow up to 'Remove support for the deprecated Key header' 2019-06-20 15:01:51 -04:00
shell Skip ::testT69870() under Windows system 2019-06-22 19:59:27 +00:00
site Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
skins Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
sparql Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
specialpage Refactor buildPrevNextNavigation 2019-06-05 19:32:27 -04:00
specials Merge "Add Special:Mute as a shortcut for muting notifications" 2019-06-25 17:15:39 +00:00
Storage storage: rename various $wikiId fields/parameters to $dbDomain 2019-06-28 00:57:04 +00:00
tidy Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
title Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
upload Relax HTML sniffing checks on image upload 2019-06-07 14:21:00 -07:00
user Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
utils AutoLoader: Skip tokenizing of irrelevant lines in ClassCollector 2019-06-19 15:09:49 +00:00
watcheditem Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ActorMigrationTest.php Inline trivial object creation helpers in tests 2019-05-28 16:12:28 +02:00
AutoLoaderTest.php
AutopromoteTest.php
CategoryTest.php Avoid hitting DB in Category getters when they have the required info 2019-04-04 12:40:14 -07:00
CommentStoreCommentTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
CommentStoreTest.php Add missing use for IMaintainableDatabase 2019-02-20 20:57:18 +01:00
CommentStoreTest.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
ContentSecurityPolicyTest.php Make RepoGroup a service instead of singleton 2019-05-06 13:57:40 +03:00
DeprecatedGlobalTest.php
DerivativeRequestTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
DiffHistoryBlobTest.php Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
EditPageTest.php EditPage: Migrate Title::userCan() calls to PermissionManager 2019-05-18 20:49:21 +02:00
ExportTest.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
ExtraParserTest.php During special page transclusion, save and restore context's WikiPage too 2018-10-19 22:19:52 +02:00
FauxRequestTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
FauxResponseTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
FormOptionsInitializationTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
FormOptionsTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
GitInfoTest.php Allow tests to run with a non-writable source tree 2018-08-30 10:48:50 +10:00
HooksTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
HtmlTest.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
LicensesTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
LinkerTest.php Make userLink() not fail too hard on false and null. 2019-06-05 14:51:57 +02:00
LinkFilterTest.php Use new externallinks.el_index_60 field 2018-11-12 22:33:18 +00:00
ListToggleTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MagicWordFactoryTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MediaWikiServicesTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MediaWikiTest.php Add @coversNothing for left over tests and enable sniff 2019-02-02 21:53:40 -08:00
MediaWikiVersionFetcherTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MergeHistoryTest.php MergeHistory: Fix flaky test due to relative timestamp 2018-08-15 02:16:02 +01:00
MessageTest.php Remove all $wgParser use from core 2019-04-17 15:16:50 +03:00
MovePageTest.php Hard-deprecate Title::moveTo and friends 2019-05-28 11:52:36 -05:00
MultiHttpClientTest.php Revert "Convert MultiHttpClient to use Guzzle" 2019-03-06 09:53:32 +01:00
MWTimestampTest.php
OutputPageTest.php OutputPage::addScriptFile: Drop silencing invalid paths, deprecated in 1.24 2019-06-27 17:22:52 +00:00
PagePropsTest.php Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
PathRouterTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
PrefixSearchTest.php Reset services before every test 2018-09-03 16:38:58 +00:00
ReadOnlyModeTest.php Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00
RevisionDbTestBase.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
RevisionMcrDbTest.php Allow getRevisionText to function without the text table. 2018-10-17 10:54:39 -04:00
RevisionMcrReadNewDbTest.php Normalize use of "INNER JOIN" to "JOIN" in database queries 2019-03-06 09:17:30 -08:00
RevisionMcrWriteBothDbTest.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
RevisionNoContentModelDbTest.php Remove usages of 'text' flag in revision-related getQueryInfo() calls 2019-04-16 15:23:14 -05:00
RevisionPreMcrDbTest.php Remove usages of 'text' flag in revision-related getQueryInfo() calls 2019-04-16 15:23:14 -05:00
RevisionTest.php Default $wgActorTableSchemaMigrationStage to SCHEMA_COMPAT_NEW 2019-05-01 00:48:54 +00:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php Fix typo in tests/includes/SampleTest.php in core 2018-11-02 12:55:09 +00:00
SanitizerValidateEmailTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ServiceWiringTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
SiteConfigurationTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
SiteStatsTest.php jobqueue: add GenericParameterJob and RunnableJob interface 2019-04-08 11:05:23 -07:00
StatusTest.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
SystemBlockTest.php Separate Block into AbstractBlock, Block and SystemBlock 2019-05-07 17:36:31 -05:00
TemplateCategoriesTest.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
TemplateParserTest.php TemplateParser: Pass FLAG_MUSTACHELOOKUP to enable parent context access 2018-09-04 12:39:34 -07:00
TestLogger.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
TestUser.php Password: replace equals() with verify() 2019-01-24 13:40:40 -08:00
TestUserRegistry.php tests: Remove use of wfRandomString() for test fixtures 2019-05-06 17:22:03 +00:00
TimeAdjustTest.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
TitleArrayFromResultTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
TitleMethodsTest.php Hard-deprecate Title::moveTo and friends 2019-05-28 11:52:36 -05:00
TitlePermissionTest.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
TitleTest.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
WebRequestTest.php Rename CDN config variables to be generic, deprecating the old names 2019-05-24 21:09:22 +00:00
WikiMapTest.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
WikiReferenceTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
XmlJsTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
XmlSelectTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
XmlTest.php ResourceLoader: Add support for packageFiles 2019-02-05 22:05:02 +00:00