wiki.techinc.nl/tests/phpunit/unit/includes/user
Thalia 6909b2016e Always allow local IP actors to be created when importing
Why:

* Following T345578, the ActorStore throws an error on
  attempting to create an actor whose name is their IP address
  if temporary accounts are enabled.
* For the specific case of importing old revisions, we need to
  be able to create new actors whose name is their IP address,
  while still generally disallowing it.

What:

* Add $allowCreateIpActors flag to ActorStore, and check for
  it during actor name validation.
* Set the flag from ActorStoreFactory::getActorStore depending
  on whether temporary users are enabled.
* Add ActorStoreFactory::getActorStoreForImport, which sets
  flag to true.
* Add RevisionStoreFactory::getRevisionStoreForImport, which
  uses getActorStoreForImport. Use this from classes handling
  imports, so that IP actors can always be created.
* Add $forImport flag on ActorMigration, since RevisionStore
  uses an actor store obtained via ActorMigration.

Bug: T354207
Change-Id: I0715bd0d23089fd8156e579913e6e823089809be
2024-01-29 19:35:14 +00:00
..
CentralId tests: Use namespaced class names in @covers annotations 2024-01-27 01:11:07 +01:00
Options Add support for conditional user defaults 2024-01-09 02:33:17 +00:00
Registration Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
TempUser Replace unchecked MWException with SPL exceptions 2024-01-28 22:41:46 +01:00
ActorCacheTest.php
ActorStoreFactoryTest.php Always allow local IP actors to be created when importing 2024-01-29 19:35:14 +00:00
UserArrayFromResultTest.php tests: Use namespaced class names in @covers annotations 2024-01-27 01:11:07 +01:00
UserGroupManagerFactoryTest.php
UserIdentityUtilsTest.php Add UserIdentityUtils service 2023-07-24 09:52:10 +10:00
UserIdentityValueTest.php tests: Change expectDeprecation to expectDeprecationAndContinue 2023-07-18 16:35:43 +00:00
UserNamePrefixSearchTest.php Special:BlockList: Improve display of hidden users 2023-12-05 13:25:54 -05:00
UserNameUtilsTest.php DummyServicesTrait: add an ITextFormatter 2024-01-09 13:16:59 +00:00
UserTimeCorrectionTest.php