wiki.techinc.nl/tests/phpunit/unit/includes
Petr Pchelko bc6f7e4bdc Make User implement Authority
Ideally, only User associated with the global request
should be associated with UserAuthority. For a random
user instance, not the current performer, checking permissions
should be based solely on user groups and perhaps an
existing block. Right now however, PermissionManager
is coupled with global request, so we still instantiate
a UserAuthority for non-current users. This mimics the
behaviour we've had before. As we refactor PermissionManager,
we will be able to replace Authority implementation in this case,
or even entirely prohibit non-performer authority.

Bug: T271459
Depends-On: Iebf2dca34eea751391d9740443c195287399aa5c
Change-Id: Ib094e498fd883db23f2763f171281b1c9e99217e
2021-01-19 18:08:12 -06:00
..
auth Replace all call_user_func(_array) in all tests 2020-06-06 18:41:20 +02:00
block Move AbstractBlock::parseTarget to BlockUtils 2020-10-07 18:52:11 +00:00
cache cache: Add purges from HtmlCacheUpdater for NS_MEDIAWIKI js/css pages 2020-08-29 04:55:32 +01:00
changes Cleanup of old PHPUnit usage, part 2 2019-10-04 21:47:46 -07:00
composer Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
config More misc test cleanup 2020-12-24 00:52:06 +00:00
content Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
debug Use expectWarning/Deprecation/Notice/Error() in phpunit tests 2021-01-04 00:16:51 +00:00
deferred Move unit tests, round III 2019-07-09 22:06:59 +02:00
diff Make use of DiffOp::norig/nclosing() and update tests 2020-03-25 15:17:17 +00:00
editpage Merge "Add tests for EditConstraintFactory" 2020-12-26 20:27:30 +00:00
exception exception: Add the 'from' file/line to the logged exception trace 2021-01-16 22:15:54 +00:00
filebackend More misc test cleanup 2020-12-24 00:52:06 +00:00
filerepo/file phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase 2019-09-02 20:58:34 +01:00
GlobalFunctions GlobalFunctions: Unbreak handling of '?0' query in wfAssembleUrl() 2020-11-26 23:45:45 +00:00
HookContainer Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
htmlform HTMLCheckMatrixTest: use data providers 2021-01-15 09:30:18 +00:00
http Upstream MwHttpRequestToResponseInterfaceAdapter from Wikibase 2020-10-07 10:17:37 +02:00
installer Remove "@group Database" from non-integration tests 2021-01-12 12:11:44 +00:00
interwiki phpunit: Remove odd "MediaWiki" group from tests using it 2021-01-08 18:35:30 +00:00
jobqueue Return deduplication to CategoryMembershipJob 2019-10-29 06:10:22 +00:00
json Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
language More misc test cleanup 2020-12-24 00:52:06 +00:00
libs Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
mail Convert or split some tests to MediaWikiUnitTestCase 2021-01-07 17:51:27 +00:00
media tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
Message UserNameUtils: use ITextFormatter instead of MessageLocalizer 2020-04-13 09:28:02 -07:00
objectcache Remove deprecated "legacy" serialization type from RESTBagOStuff 2020-07-13 10:29:47 -05:00
page Define equality for PageIdentity and LinkTarget 2021-01-19 23:07:37 +00:00
parser More misc test cleanup 2020-12-24 00:52:06 +00:00
password Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
Permissions Make User implement Authority 2021-01-19 18:08:12 -06:00
preferences Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
registration Hook Container 2020-04-17 15:48:38 +10:00
resourceloader Fix access to services in unit tests. 2021-01-12 10:55:11 +01:00
Rest Merge "Split title mocking methods out of HandlerTestTrait." 2021-01-18 17:08:11 +00:00
Revision Create fallback for undefined content models. 2020-07-22 19:59:09 +02:00
revisionlist Add tests for RevisionList/RevisionItem classes 2020-05-12 09:36:44 -07:00
search Fix incomplete/bogus PHPDoc tags in various tests 2021-01-14 19:02:00 +00:00
session Replace all call_user_func(_array) in all tests 2020-06-06 18:41:20 +02:00
shell SECURITY: Prevent invoking firejail's --output functionality 2020-09-24 16:24:36 +01:00
skins Replace tabs with spaces 2020-09-04 18:04:07 +02:00
Storage Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
tidy Add additional RemexDriver paragraph-wrapper test 2020-06-12 09:33:31 -05:00
title Define equality for PageIdentity and LinkTarget 2021-01-19 23:07:37 +00:00
user Convert UserNamePrefixSearch to a service 2020-10-08 00:14:41 +00:00
utils More misc test cleanup 2020-12-24 00:52:06 +00:00
watcheditem Make WatchedItemQueryServiceUnitTest a pure unit test 2021-01-15 00:50:18 -08:00
BadFileLookupTest.php Fix some unit tests accessing MediaWikiServices 2020-11-12 19:13:47 +00:00
DerivativeRequestTest.php Move unit tests, round III 2019-07-09 22:06:59 +02:00
FactoryArgTestTrait.php Improve documentation about object to be stdClass or specific type 2020-11-20 14:47:56 +00:00
FauxResponseTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
FeedUtilsTest.php FeedUtils: Update regex to match classes appropriately, and test 2020-12-15 07:35:10 +00:00
FormOptionsInitializationTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
FormOptionsTest.php Update docblock of FormOptionsTest 2021-01-12 12:04:12 +00:00
HeaderCallbackTest.php HeaderCallback: Sanitize cookie values in debug logs 2020-06-28 22:17:28 +00:00
LicensesTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
PathRouterTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
PingbackTest.php Pingback: Refactor for dependency injection and cover with tests 2020-12-22 19:13:53 +00:00
ServiceWiringTest.php Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
SiteConfigurationTest.php SiteConfiguration: Optimise getSetting() internals for getAll() 2020-03-04 02:12:16 +00:00
TitleArrayFromResultTest.php Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
XmlJsTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
XmlSelectTest.php Minor cleanup to XmlSelectTest 2021-01-16 02:32:44 +00:00
XmlTest.php Convert or split some tests to MediaWikiUnitTestCase 2021-01-07 17:51:27 +00:00