Mock the session for JFactory::getUser