wiki.techinc.nl/tests/phpunit/includes/auth
Ori Livneh e638075936 Whenever possible, reuse User objects in unit tests
The unit tests spend nearly half of their run time resetting the user table for
each test. But the majority of tests do not depend on the user table having the
exact value that the setup code resets it to, and do not need to modify the
user objects they require to run.

Fix that by providing an API for tests to get User objects, and to indicate
whether the User object will be subject to destructive modification or not.
This allows User objects to be reused across multiple unit tests.

Change-Id: I17ef1f519759c5e7796c259282afe730ef722e96
2016-05-26 20:42:31 +00:00
..
AbstractAuthenticationProviderTest.php
AbstractPasswordPrimaryAuthenticationProviderTest.php
AbstractPreAuthenticationProviderTest.php
AbstractPrimaryAuthenticationProviderTest.php
AbstractSecondaryAuthenticationProviderTest.php
AuthenticationRequestTest.php
AuthenticationRequestTestCase.php
AuthenticationResponseTest.php
AuthManagerTest.php
AuthPluginPrimaryAuthenticationProviderTest.php
ButtonAuthenticationRequestTest.php
CheckBlocksSecondaryAuthenticationProviderTest.php
ConfirmLinkAuthenticationRequestTest.php
ConfirmLinkSecondaryAuthenticationProviderTest.php
CreatedAccountAuthenticationRequestTest.php
CreateFromLoginAuthenticationRequestTest.php
CreationReasonAuthenticationRequestTest.php
EmailNotificationSecondaryAuthenticationProviderTest.php
LegacyHookPreAuthenticationProviderTest.php
LocalPasswordPrimaryAuthenticationProviderTest.php Whenever possible, reuse User objects in unit tests 2016-05-26 20:42:31 +00:00
PasswordAuthenticationRequestTest.php
PasswordDomainAuthenticationRequestTest.php
RememberMeAuthenticationRequestTest.php
ResetPasswordSecondaryAuthenticationProviderTest.php
TemporaryPasswordAuthenticationRequestTest.php
TemporaryPasswordPrimaryAuthenticationProviderTest.php
ThrottlePreAuthenticationProviderTest.php
ThrottlerTest.php
UserDataAuthenticationRequestTest.php
UsernameAuthenticationRequestTest.php