wiki.techinc.nl/tests/phpunit/includes/api/query
Kosta Harlan 2ed2467a7a
ApiQuerySiteinfo: Use TempUserConfig class
Why:

- Using TempUserConfig is more flexible as it doesn't require us to know
  about the internal details of the AutoCreateTempUser config object

What:

- Use TempUserConfig service instead of loading the AutoCreateTempUser
  object
- Remove properties from ApiQuerySiteInfo that don't already have
  getters. If someone has a need for more this information to be exposed
  in ApiQuerySiteInfo, they can be added in a separate patch
  - This seems compatible with the goals of T335532 which was about
    making it possible to discover via the API if an action would result
    in a temp account
- Implement __toString for Pattern, so that it can be used in
  ApiQuerySiteInfo

Bug: T335532
Change-Id: Ica84b3e9b9865b8b83a9e9e513c99cd2e47661c9
2024-06-13 22:11:27 +02: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 Run pagelinks migration for third parties too 2024-04-27 16:57:37 -04:00
ApiQueryBlockInfoTraitTest.php block: Deprecate and stop using $wgBlockTargetMigrationStage 2024-05-10 15:54:17 +10:00
ApiQueryBlocksTest.php tests: Migrate to IDatabase::newInsertQueryBuilder 2024-04-14 21:56:07 +02: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 TempAccounts: Rate limit acquisition of temp account names 2024-04-23 13:33:57 +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 Add namespace and deprecation alias to WatchedItemQueryService 2024-05-18 01:50:29 +03:30
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 ApiQuerySiteinfo: Use TempUserConfig class 2024-06-13 22:11:27 +02:00
ApiQueryTest.php Tests: remove a bunch of DummyServicesTrait-related comments 2024-05-10 04:07:59 +00:00
ApiQueryTestBase.php Minor comment cleanup in ApiQueryTestBase.php 2024-05-03 17:01:20 -05: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 TempAccounts: Rate limit acquisition of temp account names 2024-04-23 13:33:57 +00:00
ApiQueryWatchlistIntegrationTest.php Add namespace and deprecation alias to WatchedItemQueryService 2024-05-18 01:50:29 +03:30
ApiQueryWatchlistRawIntegrationTest.php Add namespace and deprecation alias to WatchedItemQueryService 2024-05-18 01:50:29 +03:30