[feature/auth-refactor] Initial auth unit test provider_db

Initial work on a unit test for the provider_db login function.
Does not work currently.

PHPBB3-9734