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 mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to