While testing with emails and user accounts, you will probably hit with a scenario when you have to create a fake account and make the Wiki send e-mails to it – so that you can analyse the results. Something similar turned up to me today, and thanks to Legoktm & Hoo, here we go:
You have to manually confirm e-mail id of user ‘FooBar’
$ cd mediawiki/maintenance/ $ php eval.php > $user = User::newFromName('FooBar'); > $user->confirmEmail(); > $user->saveSettings();
You’re done! Navigate to Specail:Preferences to make sure the email id is authenticated !
What you did ? You created a User object corresponding to the User Name = ‘FooBar’. You can even user User::newFromId(123); if you know the user id ( You can get it from the ‘user’ table of your wiki )