wiki.techinc.nl/tests/phpunit/includes/auth
Kosta Harlan 9d3de690e0 Use anonymous user when creating named account from temp account
Why:

- Using an anonymous user object at the start of account creation helps
  ensure that downstream code paths do not record the association
  between a temporary account and a named account

What:

- Use an anonymous user object during account creation initiated by
  temp account users
- Update the session to use the anonymous user and set the request
  context user based on the session user
- Ensure the temp account username is removed from the session, to avoid
  issues where account creation fails and code thinks that a temporary
  account username is already defined for the session
- Add a test to exercise this code path

Bug: T393628
Change-Id: I6d2df8c1d842c4fefa916ed395479f479a0051eb
(cherry picked from commit 3d80e63f109834b90a83597d6d924895b2c6ae71)
2025-05-29 12:06:33 +00:00
..
AbstractPasswordPrimaryAuthenticationProviderTest.php authmanager: Make some tests more robust 2024-07-28 22:38:32 +02:00
AbstractPreAuthenticationProviderTest.php
AbstractPrimaryAuthenticationProviderTest.php Tests: remove a bunch of DummyServicesTrait-related comments 2024-05-10 04:07:59 +00:00
AuthenticationRequestTest.php auth: Add missing documentation to class properties 2024-09-01 11:27:45 +02:00
AuthenticationRequestTestCase.php tests: Consistently use class_alias comments like elsewhere 2024-09-25 09:48:46 -04:00
AuthManagerTest.php Use anonymous user when creating named account from temp account 2025-05-29 12:06:33 +00:00
ButtonAuthenticationRequestTest.php auth: Add missing documentation to class properties 2024-09-01 11:27:45 +02:00
CheckBlocksSecondaryAuthenticationProviderTest.php
ConfirmLinkAuthenticationRequestTest.php
ConfirmLinkSecondaryAuthenticationProviderTest.php
CreatedAccountAuthenticationRequestTest.php
CreateFromLoginAuthenticationRequestTest.php
CreationReasonAuthenticationRequestTest.php
EmailNotificationSecondaryAuthenticationProviderTest.php
LocalPasswordPrimaryAuthenticationProviderTest.php auth: Add missing documentation to class properties 2024-09-01 11:27:45 +02:00
PasswordAuthenticationRequestTest.php tests: Use namespaced classes (1) 2024-06-14 17:19:36 +00:00
PasswordDomainAuthenticationRequestTest.php tests: Use namespaced classes (1) 2024-06-14 17:19:36 +00:00
RememberMeAuthenticationRequestTest.php
ResetPasswordSecondaryAuthenticationProviderTest.php
TemporaryPasswordAuthenticationRequestTest.php tests: Use namespaced classes (1) 2024-06-14 17:19:36 +00:00
TemporaryPasswordPrimaryAuthenticationProviderTest.php tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
ThrottlePreAuthenticationProviderTest.php Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
ThrottlerTest.php Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
UserDataAuthenticationRequestTest.php authmanager: Make some tests more robust 2024-07-28 22:38:32 +02:00
UsernameAuthenticationRequestTest.php