The tests in PreferencesTest.php checking email things,
enable email to let the test run complete and not depend on the wiki
setting.
Change-Id: I21b34b31c52a10e0f4f6b918ee25d98a97ea5981
function __construct() {
parent::__construct();
function __construct() {
parent::__construct();
$this->users['noemail'] = new User;
$this->users['noemail'] = new User;
$this->context = new RequestContext;
$this->context->setTitle( Title::newFromText('PreferencesTest') );
$this->context = new RequestContext;
$this->context->setTitle( Title::newFromText('PreferencesTest') );
+
+ //some tests depends on email setting
+ $wgEnableEmail = true;