wiki.techinc.nl/tests/phpunit/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
..
actions More misc test cleanup 2020-12-24 00:52:06 +00:00
api Make User implement Authority 2021-01-19 18:08:12 -06:00
auth Fix incomplete/bogus PHPDoc tags in various tests 2021-01-14 19:02:00 +00:00
block Revert "Enhance GroupPermissionsLookup and use it." 2021-01-12 04:48:49 +00:00
cache More misc test cleanup 2020-12-24 00:52:06 +00:00
changes More misc test cleanup 2020-12-24 00:52:06 +00:00
changetags More misc test cleanup 2020-12-24 00:52:06 +00:00
collation More misc test cleanup 2020-12-24 00:52:06 +00:00
config
content Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
context Swap out uses of User->isLoggedIn() with ->isRegistered() 2020-12-22 03:13:37 +00:00
db Make unit tests assertion about assertNotEquals more strict 2020-11-01 23:12:06 +00:00
debug Merge "Emit deprecation warning for deprecated overrides." 2021-01-13 04:06:55 +00:00
deferred deferred: make DeferredUpdates::doUpdates() recursion more uniform 2021-01-14 15:37:58 -08:00
diff Fix incomplete/bogus PHPDoc tags in various tests 2021-01-14 19:02:00 +00:00
editpage Hard deprecate NamespaceInfo::getRestrictionLevels 2020-11-16 04:40:24 +01:00
exception exception: Move remaiming MWExceptionHandler tests to its test case 2021-01-07 15:09:12 -08:00
externalstore
filebackend More misc test cleanup 2020-12-24 00:52:06 +00:00
filerepo [FileTest] Do not assume /tmp exists on windows 2020-12-12 14:56:12 +00:00
GlobalFunctions Remove hard deprecated wfIsBadImage() 2020-12-29 15:55:10 +02:00
HookContainer
htmlform Make unit tests assertion about assertNotEquals more strict 2020-11-01 23:12:06 +00:00
http
import Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
interwiki phpunit: Remove odd "MediaWiki" group from tests using it 2021-01-08 18:35:30 +00:00
jobqueue More misc test cleanup 2020-12-24 00:52:06 +00:00
language
libs More misc test cleanup 2020-12-24 00:52:06 +00:00
linkeddata Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
linker
logging 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 Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
Message
Navigation
objectcache
page Revert "Make WikiPage a ProperPageIdentity" 2021-01-15 12:30:30 -08:00
pager Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
ParamValidator/TypeDef Deprecate InterwikiLoadPrefix hook 2020-12-21 19:28:48 +00:00
parser Strict return types for PageIdentity 2021-01-18 17:33:14 +01:00
password
Permissions Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
poolcounter Fix incomplete/bogus PHPDoc tags in various tests 2021-01-14 19:02:00 +00:00
preferences
rcfeed
registration Use expectWarning/Deprecation/Notice/Error() in phpunit tests 2021-01-04 00:16:51 +00:00
resourceloader Merge "Feature file styles should precede module defined ones" 2021-01-13 14:24:44 +00:00
Rest
Revision RevisionRecord: add getPage() 2021-01-19 15:28:09 +00:00
search Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
session Fix incomplete/bogus PHPDoc tags in various tests 2021-01-14 19:02:00 +00:00
shell Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
site
skins Revert "Deprecate Skin::setupSkinUserCss" 2020-11-24 10:03:11 +11:00
sparql
specialpage Use expectWarning/Deprecation/Notice/Error() in phpunit tests 2021-01-04 00:16:51 +00:00
specials Strict return types for PageIdentity 2021-01-18 17:33:14 +01:00
Storage Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
title Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
upload Deprecate InterwikiLoadPrefix hook 2020-12-21 19:28:48 +00:00
user Make User implement Authority 2021-01-19 18:08:12 -06:00
utils Make use of array deconstruction directly in foreach, if possible 2020-11-12 18:38:06 +00:00
watcheditem Remove WatchedItemStoreUnitTest::getFakeRow 2021-01-15 09:21:48 +00:00
ActorMigrationTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
ActorMigrationTest.sql
AutoLoaderTest.php
AutopromoteTest.php
CategoryTest.php
CommentStoreCommentTest.php
CommentStoreTest.php
CommentStoreTest.sql
ContentSecurityPolicyTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
DeprecatedGlobalTest.php Use expectWarning/Deprecation/Notice/Error() in phpunit tests 2021-01-04 00:16:51 +00:00
DiffHistoryBlobTest.php
EditPageConstraintsTest.php Add AccidentalRecreationConstraint 2020-11-16 22:36:54 +00:00
EditPageTest.php Swap out uses of User->isLoggedIn() with ->isRegistered() 2020-12-22 03:13:37 +00:00
ExportTest.php
ExtraParserTest.php Deprecate InterwikiLoadPrefix hook 2020-12-21 19:28:48 +00:00
FauxRequestTest.php Implement FauxRequest::getPostValues() 2020-11-27 09:38:08 +01:00
GitInfoTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
HooksTest.php Use expectWarning/Deprecation/Notice/Error() in phpunit tests 2021-01-04 00:16:51 +00:00
HtmlTest.php Use expectWarning/Deprecation/Notice/Error() in phpunit tests 2021-01-04 00:16:51 +00:00
LinkerTest.php
LinkFilterTest.php
ListToggleTest.php
MagicWordFactoryTest.php
MediaWikiServicesTest.php phpunit: Remove odd "MediaWiki" group from tests using it 2021-01-08 18:35:30 +00:00
MediaWikiTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php Inject WikiPageFactory into MergeHistory/MovePage 2020-11-11 22:10:47 +01:00
MessageTest.php tests: Use ::class on exception names 2021-01-03 20:47:49 +01:00
MockServiceWiring.php Use the old HookContainer to set up the post-reset services 2020-12-01 13:04:12 +11:00
MovePageTest.php
MultiHttpClientTest.php
MWTimestampTest.php
OutputPageTest.php Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
PagePropsTest.php
PrefixSearchTest.php Revert "Make WikiPage a ProperPageIdentity" 2021-01-15 12:30:30 -08:00
ReadOnlyModeTest.php
RevisionDbTest.php Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
RevisionTest.php
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php Fix hang of ApiMainTest 2020-12-16 15:39:19 +11:00
SiteStatsTest.php
StatusTest.php
SystemBlockTest.php
TemplateCategoriesTest.php
TestLocalisationCache.php
TestLogger.php
TestUser.php ParserTestRunner: share more code w/ MediaWikiIntegrationTestCase 2021-01-07 23:31:12 -05:00
TestUserRegistry.php Swap out uses of User->isLoggedIn() with ->isRegistered() 2020-12-22 03:13:37 +00:00
TimeAdjustTest.php
TitleMethodsTest.php Introduce PageIdentity interface 2021-01-14 13:18:05 -06:00
TitleTest.php Define equality for PageIdentity and LinkTarget 2021-01-19 23:07:37 +00:00
WebRequestTest.php
WikiMapTest.php
WikiReferenceTest.php
XmlTest.php Convert or split some tests to MediaWikiUnitTestCase 2021-01-07 17:51:27 +00:00