wiki.techinc.nl/tests/phpunit/includes/api/query
Dreamy Jazz 102424bfb3 Update wgAutoCreateTempUser config defaults
Why:
* The default value of wgAutoCreateTempUser has not changed since
  the decision to use a different prefix for temporary accounts
  (T332805).
* The default needs to be updated to reduce the number of overrides
  in operations/mediawiki-config and also to make the development
  experience more consistent with what is happening on WMF
  production.

What:
* Update the wgAutoCreateTempUser default in the following ways:
** Set expireAfterDays as 365
** Set notifyBeforeExpirationDays as 10
** Set genPattern and reservedPattern to '~$1'
** Set matchPattern to null, which will mean that the genPattern
   is used as the value.
* Update RealTempUserConfig::getPlaceholderName to add the year to
  the placeholder name so that if the match pattern includes the
  first digit of the year, then the placeholder name still is
  considered a valid temporary account username.
* Replace modifications of the wgAutoCreateTempUser config in
  integration tests with a use of the TempUserTestTrait to make
  the code cleaner and make it easier to find tests that relies on
  the values in wgAutoCreateTempUser.
* Update multiple tests to handle the new defaults for the config.

Bug: T359335
Change-Id: Ifa5a0123cd915bdb7c87e473c51fb93321622f12
2024-04-03 16:25:47 +00: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 tests: Namespace api tests 2024-02-18 15:47:04 +00: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