wiki.techinc.nl/tests/phpunit/includes/api/query
Dreamy Jazz eabb13833f Define ApiQuery::isWriteMode
Why:
* ApiQueryBase subclasses may define a ::isWriteMode override, as
  the API call may need to write to the DB.
** This is the case for the CheckUser extension, where the
   'checkuser' API creates a log entry that allows users to audit
   usage of the API.
* ApiQuery currently does not define a implementation of
  ::isWriteMode, which means that the definitions by any class
  that extends ApiQueryBase currently do nothing.
* ApiQuery::isWriteMode should be defined and work in a similar
  way to ApiQuery::isReadMode, so that subclasses of ApiQueryBase
  can have their definitions of ::isWriteMode respected.

What:
* Define ApiQuery::isWriteMode in a similar way to how ApiQuery
  ::isReadMode is written, but also inspecting the modules that
  are used through the 'list' and 'prop' params.
* Add tests for ApiQuery::isWriteMode.

Bug: T361951
Change-Id: Idf1c8f95df58a861404e0c89507c885ec4554793
2024-04-05 16:56:04 +01:00
..
ApiQueryAllPagesTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryAllRevisionsTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryAllUsersTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryBasicTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryBlockInfoTraitTest.php block: Clarify function of HideUserUtils aliases and use them consistently 2024-03-19 11:31:03 +11:00
ApiQueryBlocksTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryContinue2Test.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryContinueTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryContinueTestBase.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryDisabledTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryImageInfoTest.php Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
ApiQueryInfoTest.php Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
ApiQueryLanguageinfoTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryLogEventsTest.php Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
ApiQueryPrefixSearchTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryRecentChangesIntegrationTest.php Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
ApiQueryRevisionsTest.php Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
ApiQuerySearchTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQuerySiteinfoTest.php Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
ApiQueryTest.php Define ApiQuery::isWriteMode 2024-04-05 16:56:04 +01:00
ApiQueryTestBase.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryTokensTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryUserContribsTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiQueryUserInfoTest.php Add 'temp' flag to ApiQueryUserInfo API 2024-02-28 17:21:30 +00:00
ApiQueryWatchlistIntegrationTest.php Group temporary users with IP users in ApiQueryWatchlist filters 2024-03-03 06:26:03 +00:00
ApiQueryWatchlistRawIntegrationTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00