[feature/auth-refactor] Test autologin() on provider_apache

Provides a test for the autologin() method of provider_apache
that assumes the user already exists in the database.

PHPBB3-9734