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 Ensure calls to Title::getArticleID use the same case as the definition 2019-02-06 22:15:05 +00:00
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 Add some missing @covers tags 2019-02-02 21:53:40 -08:00
ApiFeedContributionsTest.php ApiFeedContributions: Throw if the username is invalid 2019-08-13 10:35:49 -07:00
ApiLoginTest.php Use non-deprecated login in ApiLoginTest 2018-10-10 11:13:05 +03:00
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 Add PHPUnit test to ApiQueryDisabled 2018-08-02 21:44:24 -04:00
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 Ensure database is setup in MediaWikiTestCase::insertPage 2018-09-14 22:32:23 +02:00
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 Drop AuthPlugin and related code, deprecated in 1.27 2019-03-05 08:23:14 +00:00
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 Drop deprecated EnableAPI and EnableWriteAPI settings 2018-04-18 00:30:34 +00:00
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 Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
MockApi.php
MockApiQueryBase.php
RandomImageGenerator.php Convert RandomImageGenerator to use the new execution framework 2019-01-21 22:33:02 -08:00
UserWrapper.php
words.txt