wiki.techinc.nl/tests/phpunit/includes/auth
Nikki Nikkhoui 0adc5f3428 Hook Container
New classes and modificatons to existing classes to support the new Hooks system. All changes are documented in RFC https://phabricator.wikimedia.org/T240307.

- HookContainer.php: Class for doing much of what Hooks.php has historically done, but enabling new-style hooks to be processed and registered. Changes include new ways of defining hook handler functions as an object with defined dependencies in extension.json, removing runWithoutAbort() and addit it to an $options parameter to be passed to HookContainer::run(), being able to decipher whether a hook handler is legacy or non-legacy style and run them in the appropriate way, etc.
- DeprecatedHooks.php: For marking hooks deprecated and verifying if one is deprecated
- DeprecatedHooksTest.php: Unit tests for DeprecatedHooks.php
- Hooks.php: register() will now additionally register hooks with handlers in new HooksContainer.php. getHandlers() will be a legacy wrapper for calling the newer HookContainer::getHandlers()
- MediaWikiServices.php: Added getHookContainer() for retrieving HookContainer singleton
- ExtensionProcessor.php: modified extractHooks() to be able to extract new style handler objects being registered in extension.json
- ServiceWiring.php: Added HookContainer to list of services to return
- HookContainerTest.php: Unit tests for HookContainer.php
- ExtensionProcessorTest.php: Moved file out of /unit folder and now extends MediaWikiTestCase instead of MediaWikiUnitTestCase (as the tests are not truly unit tests). Modified existing tests for ExtensionProcessor::extractHooks() to include a test case for new style handler

Bug: T240307
Change-Id: I432861d8995cfd7180e77e115251d8055b7eceec
2020-04-17 15:48:38 +10:00
..
AbstractAuthenticationProviderTest.php Deprecate and stop using assertType(OrValue) 2019-12-15 00:07:59 +00:00
AbstractPasswordPrimaryAuthenticationProviderTest.php Replace calls to Title::getUserPermissionsErrors (part 5) 2020-02-26 03:00:33 +00:00
AbstractPreAuthenticationProviderTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
AbstractPrimaryAuthenticationProviderTest.php
AbstractSecondaryAuthenticationProviderTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
AuthenticationRequestTest.php Fix some PHPStorm warnings by replacing array functions with loops 2020-02-19 09:28:44 +11:00
AuthenticationRequestTestCase.php Fix mismatching type hints in PHPDoc tags 2020-03-24 09:59:02 +01:00
AuthManagerTest.php Enhance passwored reset message 2020-03-13 16:18:48 -07:00
ButtonAuthenticationRequestTest.php
CheckBlocksSecondaryAuthenticationProviderTest.php Provide a more informative message for authentication block errors 2019-10-21 12:09:59 +01:00
ConfirmLinkAuthenticationRequestTest.php phpcs: Enable MediaWiki.Commenting.PhpunitAnnotations.ForbiddenExpectedException* and make pass 2019-10-14 12:48:48 -07:00
ConfirmLinkSecondaryAuthenticationProviderTest.php Replace calls to Title::getUserPermissionsErrors (part 5) 2020-02-26 03:00:33 +00:00
CreatedAccountAuthenticationRequestTest.php
CreateFromLoginAuthenticationRequestTest.php
CreationReasonAuthenticationRequestTest.php
EmailNotificationSecondaryAuthenticationProviderTest.php Replace calls to Title::getUserPermissionsErrors (part 5) 2020-02-26 03:00:33 +00:00
LocalPasswordPrimaryAuthenticationProviderTest.php Replace calls to Title::getUserPermissionsErrors (part 5) 2020-02-26 03:00:33 +00:00
PasswordAuthenticationRequestTest.php Autofix 94 PHPUnit 8 compat issues 2019-12-13 15:29:10 +01:00
PasswordDomainAuthenticationRequestTest.php Autofix 94 PHPUnit 8 compat issues 2019-12-13 15:29:10 +01:00
RememberMeAuthenticationRequestTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
ResetPasswordSecondaryAuthenticationProviderTest.php Replace calls to Title::getUserPermissionsErrors (part 5) 2020-02-26 03:00:33 +00:00
TemporaryPasswordAuthenticationRequestTest.php Autofix 94 PHPUnit 8 compat issues 2019-12-13 15:29:10 +01:00
TemporaryPasswordPrimaryAuthenticationProviderTest.php Hook Container 2020-04-17 15:48:38 +10:00
ThrottlePreAuthenticationProviderTest.php Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUse 2020-01-10 09:32:25 -08:00
ThrottlerTest.php phpcs: Enable MediaWiki.Commenting.PhpunitAnnotations.ForbiddenExpectedException* and make pass 2019-10-14 12:48:48 -07:00
UserDataAuthenticationRequestTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
UsernameAuthenticationRequestTest.php