[feature/auth-refactor] Finish provider_db unit test for login

Finishes the provider_db unit test for login. The test currently
passes.

PHPBB3-9734