What is the proper incantation for faking a successful login (for a given user) as part of a unit test? My old code was:
$context = RequestContext::getMain(); $specialPage = new LoginForm( $context->getRequest() ); $user->logout(); $specialPage->showReturnToPage('successredirect'); $specialPage->successfulLogin();
What is the right way to perform this task with AuthManager?
Thanks very much, DanB
wikitech-l@lists.wikimedia.org