wiki.techinc.nl/tests/phpunit/includes/api
daniel c6c62e2c8f PHPUnit: enable main object cache in tests
This sets MainCacheType to 'hash', so the main cache is functional
within test cases. Between tests we are already calling ObjectCache::clear,
so the cache will not leak data into other test cases.

It turned out that the way we have been overriding configuration
settings in MediaWikiIntegrationTestCase is insufficient, since the
overrides would only apply in the main Config object, not in global
variables. This means they could not be overwritten with setMwGlobals.
So this patch also changes how we apply config overrides for test setup.

Config overrides that happen during tests work as before.

Depends-On: Ic36e92b73f22fd64e2d0b680d8e900f598158460
Change-Id: Ia60cb0bc18b235f23d9778da8241f65accfc0d35
2022-07-07 16:26:03 +10:00
..
format api: Replace numerous deprecated constants 2022-06-06 00:18:50 +01:00
query Tests: Cleanup some unnecessary nested function calls 2022-06-06 01:02:34 +01:00
Validator Merge "Test: Replace deprecated ApiBase constants" 2022-06-06 21:06:02 +00:00
ApiBaseTest.php Test: Replace deprecated ApiBase constants 2022-06-06 17:59:51 +01:00
ApiBlockInfoTraitTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
ApiBlockTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
ApiChangeContentModelTest.php Remove or replace usages of "sanity" 2021-11-21 19:35:49 +00:00
ApiCheckTokenTest.php
ApiClearHasMsgTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
ApiComparePagesTest.php phpcs: Disable Generic.Files.LineLength for test files 2022-02-18 18:32:05 +00:00
ApiContinuationManagerTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiCSPReportTest.php Tests: Cleanup some unnecessary nested function calls 2022-06-06 01:02:34 +01:00
ApiDeleteTest.php ApiDelete: add option to delete associated talk page 2022-02-22 10:58:26 -05:00
ApiDisabledTest.php
ApiEditPageTest.php tests: Use WikiPageFactory to create WikiPage object 2022-06-26 23:21:02 +02:00
ApiErrorFormatterTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
ApiLoginTest.php PHPUnit: enable main object cache in tests 2022-07-07 16:26:03 +10:00
ApiLogoutTest.php Remove or replace usages of "sanity" 2021-11-21 19:35:49 +00:00
ApiMainTest.php Tests: Cleanup some unnecessary nested function calls 2022-06-06 01:02:34 +01:00
ApiMessageTest.php Message: Remove deprecated format property 2021-09-03 09:21:12 -07:00
ApiMoveTest.php PHPUnit: enable main object cache in tests 2022-07-07 16:26:03 +10:00
ApiOpenSearchTest.php Merge "api: Replace numerous deprecated constants" 2022-06-06 01:10:54 +00:00
ApiOptionsTest.php Hard deprecate User group methods 2021-07-23 15:00:16 +03:00
ApiPageSetTest.php Do minor code cleanup 2022-06-24 13:52:42 +02:00
ApiParseTest.php parse: Wrap indicators with a div.mw-parser-output element 2022-06-17 21:17:31 +00:00
ApiProtectTest.php Remove usage of protection related deprecated Title function 2022-04-14 21:42:55 +00:00
ApiPurgeTest.php API: Clean up ApiPurgeTest 2021-03-13 02:29:09 +00:00
ApiResultTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
ApiRevisionDeleteTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
ApiRollbackTest.php Regression tests for ApiRollback and RollbackAction 2021-04-26 07:58:44 -07:00
ApiSetNotificationTimestampIntegrationTest.php API: Fix result of action=setnotificationtimestamp for non-watched title 2022-04-25 17:35:22 +00:00
ApiStashEditTest.php PHPUnit: enable main object cache in tests 2022-07-07 16:26:03 +10:00
ApiTestCase.php ApiBase: Reset self::$filterIDsCache between tests 2022-06-13 15:00:58 +00:00
ApiTestContext.php Allow passing mock Authority in API integration tests 2021-06-07 11:50:42 -07:00
ApiUnblockTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
ApiUndeleteTest.php Use WatchlistManager in API classes 2021-04-21 04:41:06 +00:00
ApiUploadTest.php Replace usages of deprecated wfWikiID() 2021-12-21 02:05:55 +00:00
ApiUploadTestCase.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
ApiUsageExceptionTest.php Misc cleanup to api integration tests 2021-01-21 06:32:58 +00:00
ApiUserrightsTest.php Simplify ApiUserrights now that CentralAuth no longer extends it 2022-02-17 14:59:59 +00:00
ApiWatchTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
generateRandomImages.php Replace some more isset() with shorter ?? syntax 2021-11-02 10:39:38 +01:00
MockApi.php
MockApiQueryBase.php
RandomImageGenerator.php Use ::class for class name 2021-04-08 21:17:42 +02:00