wiki.techinc.nl/tests/phpunit/includes/api
Brad Jorsch 3d0b4fea3d User: Mostly remove password handling
AuthManager is coming, which will make it easier to add alternative
methods of authentication. But in order to do that, we need to finally
get around to ripping the password-related bits out of the User class.

The password expiration handling isn't used anywhere in core or
extensions in Gerrit beyond testing for expired passwords on login and
resetting the expiry date on password change. Those bits have been
inlined and the functions removed; AuthManager will allow each
"authentication provider" to handle its own password expiration.

The methods for fetching passwords, including the fact that mPassword
and other fields are public, has also been removed. This is already
broken in combination with basically any extension that messes with
authentication, and the major use outside of that was in creating
system users like MassMessage's "MediaWiki message delivery" user.

Password setting methods are silently deprecated, since most of the
replacements won't be available until AuthManager. But uses in unit
testing can be replaced with TestUser::setPasswordForUser() immediately.

User::randomPassword() and User::getPasswordFactory() don't really
belong in User either. For the former a new PasswordFactory method has
been created, while the latter should just be replaced by the two lines
to create a PasswordFactory via its constructor.

Bug: T47716
Change-Id: I2c736ad72d946fa9b859e6cd335fa58aececc0d5
2015-10-13 16:10:41 -06:00
..
format Fix remaining Generic.Files.LineLength failures 2015-10-03 17:23:07 +00:00
query API: Remove warning about continuation change 2015-09-30 19:48:52 +00:00
ApiBaseTest.php
ApiBlockTest.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
ApiContinuationManagerTest.php Fix Generic.Files.LineLength phpcs check under phpunit/includes/api 2015-10-03 17:18:05 +00:00
ApiCreateAccountTest.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
ApiEditPageTest.php Fix Generic.Files.LineLength phpcs check under phpunit/includes/api 2015-10-03 17:18:05 +00:00
ApiErrorFormatterTest.php Fix Generic.Files.LineLength phpcs check under phpunit/includes/api 2015-10-03 17:18:05 +00:00
ApiLoginTest.php Remove use of deprecated TestUser->user 2015-08-07 17:10:26 +01:00
ApiMainTest.php Fix Generic.Files.LineLength phpcs check under phpunit/includes/api 2015-10-03 17:18:05 +00:00
ApiMessageTest.php Improve serialization of Message, Title 2015-07-07 15:56:47 -04:00
ApiModuleManagerTest.php Fix Generic.Files.LineLength phpcs check under phpunit/includes/api 2015-10-03 17:18:05 +00:00
ApiOptionsTest.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiPageSetTest.php Implement ApiPageSet::setRedirectMergePolicy() 2015-10-08 11:36:02 -07:00
ApiParseTest.php Pass phpcs-strict on some test files (5/x) 2014-04-24 18:51:45 +02:00
ApiPurgeTest.php Pass phpcs-strict on some test files (5/x) 2014-04-24 18:51:45 +02:00
ApiQueryAllPagesTest.php Rename testBug25702() to testPrefixNormalizationSearchBug() 2015-06-12 18:47:11 -07:00
ApiResultTest.php Fix Generic.Files.LineLength phpcs check under phpunit/includes/api 2015-10-03 17:18:05 +00:00
ApiRevisionDeleteTest.php Fix Generic.Files.LineLength phpcs check under phpunit/includes/api 2015-10-03 17:18:05 +00:00
ApiTestCase.php ApiTestCase: Set correct user for derivate requests 2015-06-05 17:37:14 +00:00
ApiTestCaseUpload.php tests: Clean up file headers 2015-04-01 00:17:12 +01:00
ApiTestContext.php
ApiTokensTest.php
ApiUnblockTest.php Remove use of deprecated TestUser->user 2015-08-07 17:10:26 +01:00
ApiUploadTest.php Some bugzilla.wikimedia.org -> phabricator.wikimedia.org changes 2015-09-24 17:17:25 +02:00
ApiWatchTest.php Fix issues identified by SpaceBeforeSingleLineComment sniff 2015-09-26 23:06:52 +00:00
generateRandomImages.php
MockApi.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
MockApiQueryBase.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
PrefixUniquenessTest.php API: HTMLize and internationalize the help, add Special:ApiHelp 2014-10-10 10:46:39 -04:00
RandomImageGenerator.php Change @return to start with type 2014-08-20 20:35:41 +02:00
UserWrapper.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
words.txt