wiki.techinc.nl/tests/phpunit/includes/api
DannyS712 27d9452f6d Inject dependencies into SearchApi
Used in api classes where services can be injected,
no need to rely on MediaWikiServices

Will make it possible to convert ApiOpenSearchTest to
a unit test, since everything is injected, but that will be
done in a follow-up

Plus some minor cleanup to SearchApi

Change-Id: If0a3a60f1ead897947143b57d98a3a506387f6d5
2021-07-04 10:58:36 +00:00
..
format Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
query Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
Validator Merge "Create FauxRequestUpload to fake uploads in tests" 2021-05-15 12:20:38 +00:00
ApiBaseTest.php Update DatabaseBlock construct option 'by' and 'byText' usage to use User Identity only 2021-06-02 17:01:32 +03:00
ApiBlockInfoTraitTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiBlockTest.php Hard-deprecate AbstractBlock::getTargetAndType() and getTarget() 2021-06-22 16:59:00 +03:00
ApiChangeContentModelTest.php Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
ApiCheckTokenTest.php
ApiClearHasMsgTest.php
ApiComparePagesTest.php Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
ApiContinuationManagerTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiCSPReportTest.php phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
ApiDeleteTest.php Merge "Add MediaWikiIntegrationTestCase::runJobs() and use it" 2021-05-05 03:15:17 +00:00
ApiDisabledTest.php
ApiEditPageTest.php Merge "Use IEC prefixes instead of SI prefixes for byte sizes (docs+backend)" 2021-06-29 10:34:41 +00:00
ApiErrorFormatterTest.php Make ApiErrorFormatterTest more robust. 2021-02-05 16:21:19 -05:00
ApiLoginTest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
ApiLogoutTest.php Swap out uses of User->isLoggedIn() with ->isRegistered() 2020-12-22 03:13:37 +00:00
ApiMainTest.php Allow passing mock Authority in API integration tests 2021-06-07 11:50:42 -07:00
ApiMessageTest.php Replace Title in Message/MessageCache 2021-06-09 06:16:56 -07:00
ApiMoveTest.php Update DatabaseBlock construct option 'by' and 'byText' usage to use User Identity only 2021-06-02 17:01:32 +03:00
ApiOpenSearchTest.php Inject dependencies into SearchApi 2021-07-04 10:58:36 +00:00
ApiOptionsTest.php api: Replace deprecated User::getOptionKinds/resetOptions in ApiOptions 2021-07-02 16:17:07 +02:00
ApiPageSetTest.php ApiPageSet: replace Title in method signatures 2021-05-12 23:17:59 +02:00
ApiParseTest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
ApiProtectTest.php Use WatchlistManager in API classes 2021-04-21 04:41:06 +00:00
ApiPurgeTest.php API: Clean up ApiPurgeTest 2021-03-13 02:29:09 +00:00
ApiResultTest.php Tests: Mark more closures as static 2021-02-07 13:26:56 +01:00
ApiRevisionDeleteTest.php Allow passing mock Authority in API integration tests 2021-06-07 11:50:42 -07:00
ApiRollbackTest.php Regression tests for ApiRollback and RollbackAction 2021-04-26 07:58:44 -07:00
ApiSetNotificationTimestampIntegrationTest.php Use WatchlistManager in API classes 2021-04-21 04:41:06 +00:00
ApiStashEditTest.php Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
ApiTestCase.php ApiTestCase: For tokenType=auto respect no token possibility 2021-06-24 14:52:04 +00:00
ApiTestContext.php Allow passing mock Authority in API integration tests 2021-06-07 11:50:42 -07:00
ApiTokensTest.php
ApiUnblockTest.php Update DatabaseBlock construct option 'by' and 'byText' usage to use User Identity only 2021-06-02 17:01:32 +03:00
ApiUndeleteTest.php Use WatchlistManager in API classes 2021-04-21 04:41:06 +00:00
ApiUploadTest.php Use IEC prefixes instead of SI prefixes for byte sizes (docs+backend) 2021-06-28 11:59:09 +01:00
ApiUploadTestCase.php Create FauxRequestUpload to fake uploads in tests 2021-04-06 23:10:43 +02:00
ApiUsageExceptionTest.php Misc cleanup to api integration tests 2021-01-21 06:32:58 +00:00
ApiUserrightsTest.php Update DatabaseBlock construct option 'by' and 'byText' usage to use User Identity only 2021-06-02 17:01:32 +03:00
ApiWatchTest.php Replace use of User::isWatched with WatchlistManager::isWatched 2021-04-28 18:59:41 -04: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 Use ::class for class name 2021-04-08 21:17:42 +02:00