I need an edit token for a faux request (fauxRequest) I am doing. I thought I could get a token like so:
global $wgRequest; $token = $wgRequest->getSessionData( 'wsEditToken' );
But it just reports back "badtoken: Invalid token"
What is the proper way to ger an edit token for a faux request
Thanks, -Adam