wiki.techinc.nl/tests/phpunit/integration/includes
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
..
block Allow temporary accounts to be blocked with 'hideuser' enabled 2024-01-22 18:19:59 +00:00
cache Namespace EventRelayer and EventRelayerNull 2023-06-11 00:15:46 +02:00
CommentFormatter Merge "Change more uses of getDBLoadBalancerFactory() to getConnectionProvider()" 2024-01-23 17:59:21 +00:00
composer libs/composer: Namespace under Wikimedia\Composer 2024-01-13 20:10:25 +00:00
context Move StaticUserOptionsLookup to the MediaWiki\User\Options namespace 2023-11-29 14:08:40 -05:00
db Check warnings from INSERT during tests 2024-01-12 09:33:05 +11:00
diff tests: Use overrideConfig(Value|Values) where needed 2022-07-12 14:40:46 +01:00
editpage/Constraint Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
export tests: Use overrideConfig(Value|Values) where needed 2022-07-12 14:40:46 +01:00
filerepo Reorg: Migrate WikiMap to WikiMap/ out of includes 2023-02-27 05:19:46 +01:00
Html tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
htmlform Merge "Allow setting page restrictions on BotPassword grants" 2023-12-15 06:04:00 +00:00
http shellbox: Use Telemetry class instead of WebRequest::getRequestId() 2023-09-19 14:00:25 +02:00
language Remove language coverter for Kazakh 2023-11-20 10:31:16 -05:00
libs Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
logging Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
page Update tests for PHPUnit 9.6 (part 1) 2024-01-16 23:36:15 +01:00
parser tests: Use namespaced class names in @covers annotations 2024-01-27 01:11:07 +01:00
Permissions GrantsLocalization: Move grant risk level labels from CSS to HTML 2024-01-16 23:55:48 +01:00
poolcounter tests: Use namespaced class names in @covers annotations 2024-01-27 01:11:07 +01:00
RenameUser Add integration test for RenameuserSQL 2023-11-15 09:23:06 +11:00
ResourceLoader ResourceLoader: Move ForeignResourceStructureTest to integration/ 2023-03-29 14:14:55 -07:00
Rest/Handler Merge "Change more uses of getDBLoadBalancerFactory() to getConnectionProvider()" 2024-01-23 17:59:21 +00:00
revisionlist Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
search Fix more non-database tests accessing the database 2023-08-06 15:30:41 +00:00
specials Change more uses of getDBLoadBalancerFactory() to getConnectionProvider() 2024-01-23 16:34:45 +01:00
Storage tests: Replace usages of wfGetDB 2024-01-18 00:12:59 +00:00
StubObject Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
user Always allow local IP actors to be created when importing 2024-01-29 19:35:14 +00:00
utils tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
watchlist Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
ExtensionJsonTestBase.php tests: Use namespaced MediaWiki\Request\FauxRequest 2023-08-20 01:54:10 +02:00
ExtensionServicesTestBase.php tests: Check that extension service getter methods exist 2023-06-20 10:37:12 +02:00