Commit graph

4 commits

Author SHA1 Message Date
vladshapik
91190943d1 Hard deprecate the setters of AbstractAuthenticationProvider class
Bug: T281174
Change-Id: I7f9c1161de4934abebdda68dcc24cf7a0f33d7ce
2021-05-31 13:02:39 +00:00
vladshapik
f4627f064c Create AuthenticationProviderTestTrait to facilitate testing of an AuthenticationProvider
Create new AuthenticationProviderTestTrait and AuthenticationProviderTestTrait
::initProvider method. Replace uses of AbstractAuthenticationProvider::init with new method in
tests.

Bug: T282781
Change-Id: Ie65c7558bfbacbf6678eea77e4a9b2cf68026456
2021-05-25 16:14:39 +03:00
vladshapik
3a150275de Implement injecting of dependencies to an AuthenticationProvider
init() method was added to AuthenticationProvider. It helps to inject
dependecies. Overridable postInitSetup() method was added to
AbstractAuthenticationProvider. A provider can override this to do
any necessary setup.
AbstractAuthenticationProvider ::setLogger(), ::setManager(), ::setConfig(),
::setHookContainer() were soft deprecated. Now developers must use
AbstractAuthenticationProvider::init().

Bug: T275030
Change-Id: I6ca63eddac1b177eeadbdcce992e71c44a480160
2021-04-26 15:17:34 +03:00
DannyS712
97647157af auth: Convert AbstractAuthenticationProviderTest to a pure unit test
No integration is needed.
Additionally, change namespace to reflect that it's a test class
rather than normal code.

Change-Id: Iaa591310edde57de02c710ed1741388b4abafd01
2021-03-28 21:32:20 +00:00
Renamed from tests/phpunit/includes/auth/AbstractAuthenticationProviderTest.php (Browse further)