wiki.techinc.nl/tests/phpunit/includes/api
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
..
format Expose portlet data in SkinMustache 2020-09-22 14:06:29 -07:00
query Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
Validator Fix incomplete/bogus PHPDoc tags in various tests 2021-01-14 19:02:00 +00:00
ApiBaseTest.php Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
ApiBlockInfoTraitTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiBlockTest.php Fix incomplete/bogus PHPDoc tags in various tests 2021-01-14 19:02:00 +00:00
ApiChangeContentModelTest.php Remove documentation that literally repeats the code 2020-10-27 19:20:26 +00:00
ApiCheckTokenTest.php
ApiClearHasMsgTest.php
ApiComparePagesTest.php Create diff markers with CSS 2020-12-30 12:52:08 +00:00
ApiContinuationManagerTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiCSPReportTest.php
ApiDeleteTest.php Make User implement Authority 2021-01-19 18:08:12 -06:00
ApiDisabledTest.php
ApiEditPageTest.php Skip undo related phpunit tests when diff3 is missing 2020-12-12 20:22:17 +00:00
ApiErrorFormatterTest.php
ApiLoginTest.php Make unit tests assertion about assertNotEquals more strict 2020-11-01 23:12:06 +00:00
ApiLogoutTest.php Swap out uses of User->isLoggedIn() with ->isRegistered() 2020-12-22 03:13:37 +00:00
ApiMainTest.php Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
ApiMessageTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiModuleManagerTest.php Use SpecialPageFactory to create special pages in ApiFeedRecentChanges 2020-11-03 18:11:46 +00:00
ApiMoveTest.php Deprecate DatabaseBlock methods moved to DatabaseBlockStore 2020-09-13 22:17:27 +00:00
ApiOpenSearchTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiOptionsTest.php
ApiPageSetTest.php ApiPageSet: Avoid infinite loop when merging redirects 2020-10-08 10:00:45 -07:00
ApiParseTest.php Fix incomplete/bogus PHPDoc tags in various tests 2021-01-14 19:02:00 +00:00
ApiProtectTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiPurgeTest.php
ApiResultTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiRevisionDeleteTest.php Deprecate DatabaseBlock methods moved to DatabaseBlockStore 2020-09-13 22:17:27 +00:00
ApiRollbackTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiSetNotificationTimestampIntegrationTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ApiStashEditTest.php Fix incomplete/bogus PHPDoc tags in various tests 2021-01-14 19:02:00 +00:00
ApiTestCase.php Don't access $wgRequest from User 2020-12-16 12:21:00 +11:00
ApiTestContext.php Remove documentation that literally repeats the code 2020-10-27 19:20:26 +00:00
ApiTokensTest.php
ApiUnblockTest.php Deprecate DatabaseBlock methods moved to DatabaseBlockStore 2020-09-13 22:17:27 +00:00
ApiUndeleteTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiUploadTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiUploadTestCase.php
ApiUsageExceptionTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiUserrightsTest.php [ApiUserrightsTest] Start with empty $wgAddGroups/$wgRemoveGroups 2020-10-30 16:36:02 +01:00
ApiWatchlistTraitTest.php [API] Ignore watchlist preferences for bot users 2020-12-22 22:28:28 +01:00
ApiWatchTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
generateRandomImages.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
MockApi.php
MockApiQueryBase.php
RandomImageGenerator.php Update a lot of unspecific "array" types in PHPDocs 2020-10-28 11:01:33 +01:00
UserWrapper.php
words.txt