wiki.techinc.nl/tests/phpunit/includes/api
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
..
format tests: Namespace api tests 2024-02-18 15:47:04 +00:00
query Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
Validator tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiAcquireTempUserNameTest.php Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
ApiBaseTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiBlockInfoTraitTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiBlockTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiChangeContentModelTest.php Improve rate limit tests 2024-03-12 14:00:07 +11:00
ApiCheckTokenTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiClearHasMsgTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiComparePagesTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiContinuationManagerTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiCreateTempUserTraitTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiCSPReportTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiDeleteTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiDisabledTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiEditPageTest.php Remove IDBAccessObject from being implemented in many classes 2024-02-19 10:50:02 +01:00
ApiEntryPointTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiErrorFormatterTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiFeedRecentChangesTest.php Update help text for 'hideanons' in ApiFeedRecentChanges API 2024-02-22 17:20:28 +00:00
ApiLoginTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiLogoutTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiMainTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiMessageTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiMoveTest.php Improve rate limit tests 2024-03-12 14:00:07 +11:00
ApiOpenSearchTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiOptionsTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiPageSetTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiParseTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiProtectTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiPurgeTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiResultTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiRevisionDeleteTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiRollbackTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiSetNotificationTimestampIntegrationTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiStashEditTest.php Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
ApiTestCase.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiTestContext.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUnblockTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUndeleteTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUploadTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUploadTestCase.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUsageExceptionTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUserrightsTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiWatchTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
generateRandomImages.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
MockApi.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
MockApiQueryBase.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
RandomImageGenerator.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00