wiki.techinc.nl/tests/phpunit/includes/api
mainframe98 eb8823743c Use ObjectFactory to create API modules
This will allow constructing API modules that need services.

This overhauls some of the internals of the ApiModuleManager,
but the public interface remains unchanged.
The $class parameter of addModule, (now called $spec)
also allows passing an array with the spec of the module.
Note that this spec requires the attribute 'class' to be present,
even when 'factory' is specified. This is the same as before,
where $class was always required.

In a perfect DI world ObjectFactory would be injected into
ApiMain::__construct and ApiMain would pass that to its instance
of ApiModuleManager, but that is currently not possible, so for now
it is injected in ApiModuleManager by having ApiMain::__construct
call the service locator.

Bug: T222388
Change-Id: Iee04afc27283547dd68d6db93f44ac2e0ebf1258
2019-09-09 18:50:16 +00:00
..
format Use ObjectFactory to create API modules 2019-09-09 18:50:16 +00:00
query Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
ApiBaseTest.php Merge "ApiBase: Always validate that 'limit' is numeric" 2019-09-04 15:15:43 +00:00
ApiBlockInfoTraitTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ApiBlockTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
ApiCheckTokenTest.php
ApiClearHasMsgTest.php
ApiComparePagesTest.php
ApiContinuationManagerTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ApiCSPReportTest.php API: Fix 'user_id' field of ApiCSPReport 2019-07-19 22:58:39 +01:00
ApiDeleteTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
ApiDisabledTest.php
ApiEditPageTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
ApiErrorFormatterTest.php
ApiFeedContributionsTest.php ApiFeedContributions: Throw if the username is invalid 2019-08-13 10:35:49 -07:00
ApiLoginTest.php
ApiLogoutTest.php ApiLogout: Follow up Icb674095 2019-04-25 10:00:24 -04:00
ApiMainTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
ApiMessageTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ApiModuleManagerTest.php Use ObjectFactory to create API modules 2019-09-09 18:50:16 +00:00
ApiMoveTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
ApiOpenSearchTest.php
ApiOptionsTest.php Call resetServices() when setting globals in tests 2019-08-29 14:26:13 +03:00
ApiPageSetTest.php
ApiParseTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
ApiPurgeTest.php
ApiQueryAllPagesTest.php
ApiQueryBlocksTest.php Rename Block to MediaWiki\Block\DatabaseBlock 2019-05-28 12:20:48 +01:00
ApiQueryDisabledTest.php
ApiQueryInfoTest.php Rename Block to MediaWiki\Block\DatabaseBlock 2019-05-28 12:20:48 +01:00
ApiQueryLanguageinfoTest.php Use ObjectFactory to create API modules 2019-09-09 18:50:16 +00:00
ApiQueryPrefixSearchTest.php
ApiQueryRecentChangesIntegrationTest.php Update MediaWikiTitleCodec to use NamespaceInfo 2019-04-14 14:55:58 +03:00
ApiQuerySearchTest.php Hard deprecate new SearchResult() and introduce RevisionSearchResult 2019-08-27 08:27:28 -07:00
ApiQuerySiteinfoTest.php Call resetServices() when setting globals in tests 2019-08-29 14:26:13 +03:00
ApiQueryUserInfoTest.php Rename Block to MediaWiki\Block\DatabaseBlock 2019-05-28 12:20:48 +01:00
ApiQueryWatchlistIntegrationTest.php Update MediaWikiTitleCodec to use NamespaceInfo 2019-04-14 14:55:58 +03:00
ApiQueryWatchlistRawIntegrationTest.php objectcache: Hard deprecate ObjectCache::getMainWANInstance() 2019-07-09 09:29:57 +00:00
ApiResultTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ApiRevisionDeleteTest.php
ApiSetNotificationTimestampIntegrationTest.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
ApiStashEditTest.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
ApiTestCase.php
ApiTestContext.php
ApiTokensTest.php Remove usages of deprecated User::getRights. 2019-08-20 19:43:54 -07:00
ApiUnblockTest.php Revert "Factors out permissions check from User into PermissionManager service" 2019-05-30 13:51:37 +00:00
ApiUploadTest.php Rework ApiUploadTest 2019-08-30 13:50:50 -07:00
ApiUploadTestCase.php
ApiUsageExceptionTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ApiUserrightsTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
ApiWatchTest.php
generateRandomImages.php
MockApi.php
MockApiQueryBase.php
RandomImageGenerator.php
UserWrapper.php
words.txt