wiki.techinc.nl/tests/phpunit/includes/api
Petr Pchelko edb3a9a692 Allow passing mock Authority in API integration tests
This is a demo, a lot of tests could be rewritten as a followup
to pass proper Authority when executing tests instead of writing
globals. Much cleaner imho.

An improvement idea is to allow overriding 'default permissions'
when creating a mock Authority.

Change-Id: I38570024e0d5a67a8e1c52f7456c458090ec2b6e
2021-06-07 11:50:42 -07:00
..
format phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
query Merge "Update DatabaseBlock construct option 'by' and 'byText' usage to use User Identity only" 2021-06-02 17:56:23 +00: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
ApiBlockTest.php Allow passing mock Authority in API integration tests 2021-06-07 11:50:42 -07:00
ApiChangeContentModelTest.php Allow passing mock Authority in API integration tests 2021-06-07 11:50:42 -07:00
ApiCheckTokenTest.php
ApiClearHasMsgTest.php
ApiComparePagesTest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
ApiContinuationManagerTest.php
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 Update DatabaseBlock construct option 'by' and 'byText' usage to use User Identity only 2021-06-02 17:01:32 +03: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 Merge "Misc cleanup to api integration tests" 2021-01-21 07:32:08 +00: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 Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
ApiOptionsTest.php Allow passing mock Authority in API integration tests 2021-06-07 11:50:42 -07: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 Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
ApiTestCase.php Allow passing mock Authority in API integration tests 2021-06-07 11:50:42 -07: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 WatchlistManager in API classes 2021-04-21 04:41:06 +00: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